DDI_GET_PARENT(9F) Kernel Functions for Drivers DDI_GET_PARENT(9F)

ddi_get_parent - find the parent of a device information structure

#include <sys/ddi.h>
#include <sys/sunddi.h>
dev_info_t *ddi_get_parent(dev_info_t *dip);

illumos DDI specific (illumos DDI).

dip

Pointer to a device information structure.

The ddi_get_parent() function returns a pointer to the device information structure which is the parent of the one pointed to by dip.

The ddi_get_parent() function returns a pointer to a device information structure.

The ddi_get_parent() function can be called from user, interrupt, or kernel context.

Writing Device Drivers

January 16, 2006 OmniOS