Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversddi_get_driver_private(9F)


NAME

 ddi_get_driver_private, ddi_set_driver_private - get or set the address of the device's private data area

SYNOPSIS

 
#include <sys/conf.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
void ddi_set_driver_private(dev_info_t *dip, caddr_t data);
 caddr_t ddi_get_driver_private(dev_info_t *dip);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 

ddi_get_driver_private()

dip
Pointer to device information structure to get from.

ddi_set_driver_private()

dip
Pointer to device information structure to set.
data
Data area address to set.

DESCRIPTION

 

ddi_get_driver_private() returns the address of the device's private data area from the device information structure pointed to by dip.

ddi_set_driver_private() 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

 

ddi_get_driver_private() returns the contents of devi_driver_data. If ddi_set_driver_private() has not been previously called with dip, an unpredictable value is returned.

CONTEXT

 

These functions can be called from user or interrupt context.

SEE ALSO

 

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 6 Feb 1995

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.