1di_devlink_path(3DEVINDFeOv)ice Information Library Functidoin_sdevlink_path(3DEVINFO)
2
3
4

NAME

6       di_devlink_path,  di_devlink_content,  di_devlink_type  -  get  devlink
7       attributes
8

SYNOPSIS

10       cc [ flag... ] file... -ldevinfo [ library... ]
11       #include <libdevinfo.h>
12
13       const char *di_devlink_path(di_devlink_t devlink);
14
15
16       const char *di_devlink_content(di_devlink_t devlink);
17
18
19       int di_devlink_type(di_devlink_t devlink);
20
21

PARAMETERS

23       devlink    An opaque handle to a devlink.
24
25

DESCRIPTION

27       These functions return various attributes of a devlink.
28

RETURN VALUES

30       The di_devlink_path() function returns the absolute path of a  devlink.
31       On error, NULL is returned and errno is set to indicate the error.
32
33
34       The  di_devlink_content()  function returns the content of the symbolic
35       link represented by devlink. On error, NULL is returned  and  errno  is
36       set to indicate the error.
37
38
39       The di_devlink_type() function returns the devlink type, either DI_PRI‐
40       MARY_LINK or DI_SECONDARY_LINK. On error, -1 is returned and  errno  is
41       set to indicate the error.
42

ERRORS

44       These functions will fail if:
45
46       EINVAL    The devlink argument is invalid.
47
48

ATTRIBUTES

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

SEE ALSO

64       di_devlink_init(3DEVINFO), di_devlink_walk(3DEVINFO), libdevinfo(3LIB),
65       malloc(3C), attributes(5)
66
67
68
69SunOS 5.11                        15 May 2008        di_devlink_path(3DEVINFO)
Impressum