Go to main content

man pages section 3: Networking Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

dlpi_walk(3DLPI)

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);
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 to dlpi_walk().

arg

An opaque argument that is passed transparently to the user-supplied fn() function.

flags

DLPI_ALLZONES

Include non-global zone DLPI links in the walk (global zone only).

Description

The dlpi_walk() function visits all DLPI links. The walk terminates either when all links have been visited or when fn() returns B_TRUE.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Safe

See Also

libdlpi(3LIB), attributes(7)