1ddi_get_driver_private(9F)Kernel Functions for Driversddi_get_driver_private(9F)
2
3
4

NAME

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

SYNOPSIS

10       #include <sys/conf.h>
11       #include <sys/ddi.h>
12       #include <sys/sunddi.h>
13
14
15
16       void ddi_set_driver_private(dev_info_t *dip, void *data);
17
18
19       void *ddi_get_driver_private(dev_info_t *dip);
20
21

INTERFACE LEVEL

23       Solaris DDI specific (Solaris DDI).
24

PARAMETERS

26       ddi_get_driver_private()
27
28       dip    Pointer to device information  structure to get from.
29
30
31
32       ddi_set_driver_private()
33
34       dip     Pointer to device information structure to set.
35
36
37       data    Data area address to set.
38
39

DESCRIPTION

41       The  ddi_get_driver_private()  function  returns  the  address  of  the
42       device's  private  data  area  from  the  device  information structure
43       pointed to by dip.
44
45
46       The ddi_set_driver_private() function sets the address of the  device's
47       private data area in the device information structure pointed to by dip
48       with the value of data.
49

RETURN VALUES

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

CONTEXT

56       These functions can be called from user , interrupt, or kernel context.
57

SEE ALSO

59       Writing Device Drivers
60
61
62
63SunOS 5.11                        16 Jan 2006       ddi_get_driver_private(9F)
Impressum