DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

pr_intr_adderr(D3oddi)


pr_intr_adderr -- output an error message if add_intr_handler(D3oddi) fails

Synopsis (Not recommended for current drivers)

#include <sys/devreg.h>

void pr_intr_adderr(char *name, int type, int vector, int ipl, int dei);

Description

The pr_intr_adderr routine outputs an error message using cmn_err(D3oddi), wherever add_intr_handler(D3oddi) fails.

Arguments


name
Driver name.

type
Internal name of the adapter as specified in column 1 of the mdevice(F) file. This must match the value of the type argument to the add_intr_handler(D3oddi) function.

vector
Interrupt vector number. This must match the value of the vector argument to the add_intr_handler(D3oddi) function.

ipl
Priority level at which the specified add_intr_handler( ) handler function processes interrupts. This must match the value of the ipl argument to the add_intr_handler(D3oddi) function.

dei
Error code that determines the type of message; this is returned by add_intr_handler( ).

Return values

None.

Usage

Context and synchronization

Initialization context

Hardware applicability

All

Version applicability

oddi: 2

Differences between versions

Drivers written for ODDI versions 3 and later use the idistributed(D3oddi) function to register interrupts and do not need a special function to handle error conditions.

SVR5 DDI compatibility

There is no comparable function for SVR5 DDI drivers.

References

add_intr_handler(D3oddi), cmn_err(D3oddi), mdevice(F)

``Interrupt handlers, attaching and registering'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005