1di_lnode_name(3DEVINFOD)evice Information Library Functiondsi_lnode_name(3DEVINFO)
2
3
4

NAME

6       di_lnode_name,  di_lnode_devinfo,  di_lnode_devt  -  return  libdevinfo
7       lnode information
8

SYNOPSIS

10       cc [ flag... ] file... -ldevinfo [ library... ]
11       #include <libdevinfo.h>
12
13       char *di_lnode_name(di_lnode_t lnode);
14
15
16       di_node_t di_lnode_devinfo(di_lnode_t lnode);
17
18
19       int di_lnode_devt(di_lnode_t lnode, dev_t *devt);
20
21

PARAMETERS

23       lnode    A handle to an lnode.
24
25
26       devt     A pointer to a dev_t that can be returned.
27
28

DESCRIPTION

30       These functions return libdevinfo lnode information.
31
32
33       The di_lnode_name() function returns a pointer to the  name  associated
34       with lnode.
35
36
37       The  di_lnode_devinfo()  function  returns  a handle to the device node
38       associated with lnode.
39
40
41       The di_lnode_devt() function sets the dev_t  pointed  to  by  the  devt
42       parameter to the dev_t associated with lnode.
43

RETURN VALUES

45       The  di_lnode_name()  function returns a pointer to the name associated
46       with lnode.
47
48
49       The di_lnode_devinfo() function returns a handle  to  the  device  node
50       associated with lnode.
51
52
53       The  di_lnode_devt()  function  returns  0  if  the requested attribute
54       exists in lnode and was  returned.  It  returns  −1  if  the  requested
55       attribute does not exist and sets errno to indicate the error.
56

ERRORS

58       The di_lnode_devt() function will fail if:
59
60       EINVAL    An argument was invalid.
61
62

ATTRIBUTES

64       See attributes(5) for descriptions of the following attributes:
65
66
67
68
69       ┌─────────────────────────────┬─────────────────────────────┐
70       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
71       ├─────────────────────────────┼─────────────────────────────┤
72       │Interface Stability          │Evolving                     │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │MT-Level                     │Safe                         │
75       └─────────────────────────────┴─────────────────────────────┘
76

SEE ALSO

78       di_init(3DEVINFO), libdevinfo(3LIB), attributes(5)
79
80
81
82SunOS 5.11                        22 Mar 2004          di_lnode_name(3DEVINFO)
Impressum