Kernel Functions for Drivers ddigetdriverprivate(9F)
NAME
ddigetdriverprivate, ddisetdriverprivate - get or set
the address of the device's private data area
SYNOPSIS
#include
#include
#include
void ddisetdriverprivate(devinfot *dip, void *data);
void *ddigetdriverprivate(devinfot *dip);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
ddigetdriverprivate()
dip Pointer to device information structure to get from.
ddisetdriverprivate()
dip Pointer to device information structure to set.
data Data area address to set.
DESCRIPTION
The ddigetdriverprivate() function returns the address of
the device's private data area from the device information
structure pointed to by dip.
The ddisetdriverprivate() function sets the address of
the device's private data area in the device information
structure pointed to by dip with the value of data.
RETURN VALUES
The ddigetdriverprivate() function returns the contents
of devidriverdata. If ddisetdriverprivate() has not
been previously called with dip, an unpredictable value is
returned.
SunOS 5.11 Last change: 16 Jan 2006 1
Kernel Functions for Drivers ddigetdriverprivate(9F)
CONTEXT
These functions can be called from user , interrupt, or ker-
nel context.
SEE ALSO
Writing Device Drivers
SunOS 5.11 Last change: 16 Jan 2006 2
|