1di_minor_next(3DEVINFOD)evice Information Library Functiondsi_minor_next(3DEVINFO)
2
3
4

NAME

6       di_minor_next - libdevinfo minor node traversal functions
7

SYNOPSIS

9       cc [ flag... ] file... -ldevinfo [ library... ]
10       #include <libdevinfo.h>
11
12       di_minor_t di_minor_next(di_node_t node, di_minor_t minor);
13
14

PARAMETERS

16       minor    Handle to the current minor node or DI_MINOR_NIL.
17
18
19       node     Device node with which the minor node is associated.
20
21

DESCRIPTION

23       The  di_minor_next()  function  returns a handle to the next minor node
24       for the device node node. If minor is DI_MINOR_NIL,  a  handle  to  the
25       first minor node is returned.
26

RETURN VALUES

28       Upon  successful  completion,  a   handle  to  the  next  minor node is
29       returned. Otherwise, DI_MINOR_NIL is returned and errno is set to indi‐
30       cate the error.
31

ERRORS

33       The di_minor_next() function will fail if:
34
35       EINVAL     Invalid argument.
36
37
38       ENOTSUP    Minor node information is not available in snapshot.
39
40
41       ENXIO      End of minor node list.
42
43

ATTRIBUTES

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

SEE ALSO

59       libdevinfo(3LIB), attributes(5)
60
61
62       Writing Device Drivers
63
64
65
66SunOS 5.11                        1 Dec 1998           di_minor_next(3DEVINFO)
Impressum