Copyright (c) 2008, 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]
cc [ flag... ] file... -ldevinfo [ library... ] #include <libdevinfo.h> di_path_prop_t di_path_prop_next(di_path_t path, di_path_prop_t prop);
path
The handle to a path node in a di_init(3DEVINFO).
prop
The 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_path_prop_next() returns a handle to a path property object. Otherwise DI_PROP_NIL is returned, and errno is set to indicate the error.
The di_prop_next() function will fail if:
EINVAL
An argument is invalid.
ENOTSUP
The snapshot does not contain path property information (DINFOPROP was not passed to di_init()).
ENXIO
There are no more properties.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | Safe |
libdevinfo(3LIB), attributes(5)
Writing Device Drivers