Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversddi_get_parent(9F)


NAME

 ddi_get_parent - find the parent of a device information structure

SYNOPSIS

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

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
dip
Pointer to a device information structure.

DESCRIPTION

 

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

RETURN VALUES

 

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

CONTEXT

 

ddi_get_parent() can be called from user or interrupt context.

SEE ALSO

 

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 5 Oct 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.