#include <sys/ddi.h> #include <sys/sunddi.h>
Solaris DDI specific (Solaris DDI).
ddi_get_parent() returns a pointer to the device information structure which is the parent of the one pointed to by dip.
ddi_get_parent() returns a pointer to a device information structure.
ddi_get_parent() can be called from user or interrupt context.
Writing Device Drivers