2 .\" Copyright (c) 2008, Sun Microsystems Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DLPI_WALK 3DLPI "Sep 18, 2008"
8 dlpi_walk \- traverse DLPI links
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... -\fBldlpi\fR [ \fIlibrary\fR... ]
15 \fBvoid\fR \fBdlpi_walk\fR(\fBdlpi_walkfunc_t *\fR\fIfn\fR, \fBvoid *\fR\fIarg\fR, \fBuint_t\fR \fIflags\fR);
20 \fBtypedef boolean_t\fR \fBdlpi_walkfunc_t\fR(\fBconst char *\fR\fIname\fR, \fBvoid *\fR\fIarg\fR);
30 Function to invoke for each link. Arguments are:
37 The name of the DLPI interface.
46 The \fIarg\fR parameter passed in to \fBdlpi_walk()\fR.
57 An opaque argument that is passed transparently to the user-supplied \fIfn\fR()
67 This parameter is reserved for future use. The caller should pass in 0.
73 The \fBdlpi_walk()\fR function visits all DLPI links on the system. For each
74 link visited, the user-supplied fn() function is invoked. The walk terminates
75 either when all links have been visited or when \fIfn\fR() returns
80 See \fBattributes\fR(5) for descriptions of the following attributes:
88 ATTRIBUTE TYPE ATTRIBUTE VALUE
90 Interface Stability Committed
98 \fBlibdlpi\fR(3LIB), \fBattributes\fR(5)