xref: /illumos-gate/usr/src/man/man3devinfo/di_prop_next.3devinfo (revision 85f4cb87104c72587029a6e0f1663332c85ba118)
te
Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
DI_PROP_NEXT 3DEVINFO "Dec 1, 1998"
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 TYPE ATTRIBUTE VALUE
Interface Stability Evolving
MT-Level Safe
SEE ALSO

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

Writing Device Drivers