Kernel Functions for Drivers ddidevnregs(9F)
NAME
ddidevnregs - return the number of register sets a device
has
SYNOPSIS
#include
#include
#include
int ddidevnregs(devinfot *dip, int *resultp);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
dip A pointer to the device's devinfo structure.
resultp Pointer to an integer that holds the number of
register sets on return.
DESCRIPTION
The ddidevnregs() function returns the number of sets of
registers the device has.
RETURN VALUES
The ddidevnregs() function returns:
DISUCES A successful return. The number of register
sets is returned in resultp.
DIFAILURE The device has no registers.
CONTEXT
The ddidevnregs() function can be called from user, inter-
rupt, or kernel context.
SEE ALSO
ddidevnintrs(9F), ddidevregsize(9F)
Writing Device Drivers
SunOS 5.11 Last change: 16 Jan 2006 1
|