DI_PROP_NEXT(3DEVINFO) Device Information Library Functions DI_PROP_NEXT(3DEVINFO)

di_prop_next - libdevinfo property traversal function

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

node

Handle to a device node.

prop

Handle to a property.

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.

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

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.

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

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Evolving
MT-Level Safe

di_init(3DEVINFO), libdevinfo(3LIB), attributes(7)

Writing Device Drivers

December 1, 1998 OmniOS