ddi_set_driver_private(9f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

ddi_set_driver_private(9f)

ddi_get_driver_private(9F)     Kernel Functions     ddi_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 de‐
       vice'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_dri‐
       ver_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 in Oracle Solaris 11.4

Oracle Solaris 11.4               16 Jan 2006       ddi_get_driver_private(9F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3