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
    
 
Device Information Library Functionsdi_prop_next(3DEVINFO)


NAME

 di_prop_next - libdevinfo property traversal function

SYNOPSIS

 
cc [ flag... ] file... -ldevinfo [ library... ]
#include <libdevinfo.h>
di_prop_t di_prop_next(di_node_t node, di_prop_t prop);

PARAMETERS

 

node
Handle to a device node.
prop
Handle to a property.

DESCRIPTION

 

The di_prop_next() function returns a handle to the next property on the property list. If prop is DI_PROP_NIL, the handle to the first property is returned.

RETURN VALUES

 

Upon successful completion, di_prop_next() returns a handle. Otherwise DI_PROP_NIL is returned and errno is set to indicate the error.

ERRORS

 

The di_prop_next() function will fail if:

EINVAL
Invalid argument.
ENOTSUP
The snapshot does not contain property information.
ENXIO
There are no more properties.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityEvolving
MT-LevelSafe

SEE ALSO

 

di_init(3DEVINFO), libdevinfo(3DEVINFO), attributes(5)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 1 Dec 1998

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