1dlpi_walk(3DLPI)Data Link Provider Interface Library Functionsdlpi_walk(3DLPI)
2
3
4

NAME

6       dlpi_walk - traverse DLPI links
7

SYNOPSIS

9       cc [ flag... ] file... -ldlpi [ library... ]
10       #include <libdlpi.h>
11
12       void dlpi_walk(dlpi_walkfunc_t *fn, void *arg, uint_t flags);
13
14
15       typedef boolean_t dlpi_walkfunc_t(const char *name, void *arg);
16
17

PARAMETERS

19       fn           Function to invoke for each link.  Arguments are:
20
21                    name    The name of the DLPI interface.
22
23
24                    arg     The arg parameter passed in to dlpi_walk().
25
26
27
28       arg          An  opaque  argument  that  is passed transparently to the
29                    user-supplied fn() function.
30
31
32       flags        This parameter is reserved  for  future  use.  The  caller
33                    should pass in 0.
34
35

DESCRIPTION

37       The dlpi_walk() function visits all DLPI links on the system.  For each
38       link visited, the user-supplied fn() function is invoked. The walk ter‐
39       minates  either  when  all links have been visited or when fn() returns
40       B_TRUE.
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Interface Stability          │Committed                    │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │Safe                         │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       libdlpi(3LIB), attributes(5)
58
59
60
61SunOS 5.11                        18 Sep 2008                 dlpi_walk(3DLPI)
Impressum