Data Link Provider Interface Library Functions dlpi_walk(3DLPI)
NAME
dlpi_walk - traverse DLPI links
SYNOPSIS
cc [ flag... ] file... -ldlpi [ library... ]
#include
void dlpi_walk(dlpi_walkfunc_t *fn, void *arg, uint_t flags);
typedef boolean_t dlpi_walkfunc_t(const char *name, void *arg);
PARAMETERS
fn Function to invoke for each link. Arguments are: name The name of the DLPI interface. arg The arg parameter passed in todlpi_walk().
arg An opaque argument that is passed transparentlyto the user-supplied fn() function.
flags This parameter is reserved for future use. The caller should pass in 0.DESCRIPTION
The dlpi_walk() function visits all DLPI links on the sys-
tem. For each link visited, the user-supplied fn() function
is invoked. The walk terminates either when all links havebeen visited or when fn() returns B_TRUE.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 18 Sep 2008 1
Data Link Provider Interface Library Functions dlpi_walk(3DLPI)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
libdlpi(3LIB), attributes(5)SunOS 5.11 Last change: 18 Sep 2008 2