ddi_set_driver_private man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

ddi_get_driver_private(9FKernel Functions for Driverddi_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, void *data);

       void *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
       The  ddi_get_driver_private()  function	returns	 the  address  of  the
       device's	 private  data	area  from  the	 device	 information structure
       pointed to by dip.

       The ddi_set_driver_private() 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  ddi_get_driver_private()  function	 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 , interrupt, or kernel context.

SEE ALSO
       Writing Device Drivers

SunOS 5.11			  16 Jan 2006	    ddi_get_driver_private(9F)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net