1di_link_spectype(3DEVIDNeFvOi)ce Information Library Functdiio_nlsink_spectype(3DEVINFO)
2
3
4

NAME

6       di_link_spectype, di_link_to_lnode - return libdevinfo link information
7

SYNOPSIS

9       cc [ flag... ] file... -ldevinfo [ library... ]
10       #include <libdevinfo.h>
11
12       int di_link_spectype(di_link_t link);
13
14
15       di_lnode_t di_link_to_lnode(di_link_t link, uint_t endpoint);
16
17

PARAMETERS

19       link        A handle to a link.
20
21
22       endpoint    specifies the endpoint of the link, which should correspond
23                   to either DI_LINK_TGT or DI_LINK_SRC
24
25

DESCRIPTION

27       The di_link_spectype() function returns libdevinfo link information.
28
29
30       The di_link_to_lnode() function takes a  link  specified  by  link  and
31       returns  the lnode corresponding to the link endpoint specified by end‐
32       point.
33

RETURN VALUES

35       The di_link_spectype() function returns  the  spectype  parameter  flag
36       that  was  used  to open the target device of a link, either S_IFCHR or
37       S_IFBLK.
38
39
40       Upon successful completion, di_link_to_lnode() returns a handle  to  an
41       lnode.  Otherwise, DI_LINK_NIL is returned and errno is set to indicate
42       the error.
43

ERRORS

45       The di_link_to_lnode() function will fail if:
46
47       EINVAL    An argument is invalid.
48
49

ATTRIBUTES

51       See attributes(5) for descriptions of the following attributes:
52
53
54
55
56       ┌─────────────────────────────┬─────────────────────────────┐
57       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Evolving                     │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │MT-Level                     │Safe                         │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       di_init(3DEVINFO), libdevinfo(3LIB), attributes(5)
66
67
68
69SunOS 5.11                        22 Mar 2004       di_link_spectype(3DEVINFO)
Impressum