dlpi_walk (3dlpi) manual page

Table of Contents

Name

dlpi_walk - traverse DLPI links

Synopsis

cc [ flag... ] file... -ldlpi [ library... ] #include <libdlpi.h>

void dlpi_walk(dlpi_walkfunc_t *fn, void *arg, uint_t flags);

Parameters

fn
For each DLPI link (data-link interface) on the system, the caller-supplied function fn() is invoked. The dlpi_walkfunc_t type is defined as follows:

typedef boolean_t dlpi_walkfunc_t(const char *name, void *arg);

The arguments to fn() are:

name
The name of the DLPI interface.

arg
The arg parameter passed in to dlpi_walk().

arg
An opaque argument which is passed transparently to 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 system. For each link visited, the user-supplied fn() function is invoked. The walk terminates either when all links have been visited or when fn() returns B_TRUE.

Attributes

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

tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe

See Also

libdlpi(3LIB) , attributes(5)


Table of Contents