1di_path_prop_lookup_byDteevsi(c3eDEIVnIfNoFrOm)ation Librdair_ypaFtuhn_cptrioopn_slookup_bytes(3DEVINFO)
2
3
4

NAME

6       di_path_prop_lookup_bytes,                  di_path_prop_lookup_int64s,
7       di_path_prop_lookup_ints, di_path_prop_lookup_strings -  search  for  a
8       path property
9

SYNOPSIS

11       cc [ flag... ] file... -ldevinfo [ library... ]
12       #include <libdevinfo.h>
13
14       int di_path_prop_lookup_bytes(di_path_t path,
15            const char *prop_name);
16
17
18       int di_path_prop_lookup_int64s(di_path_t path,
19            const char *prop_name);
20
21
22       int di_path_prop_lookup_ints(di_path_t path,
23            const char *prop_name, char **prop_data);
24
25
26       int di_path_prop_lookup_strings(di_path_t path,
27            const char *prop_name, char **prop_data);
28
29

PARAMETERS

31       path         The handle to a path node in a di_init(3DEVINFO).
32
33
34       prop_name    The name of property for which to search.
35
36
37       prop_data    For  di_path_prop_lookup_bytes(), the address to a pointer
38                    to an array of unsigned characters containing the property
39                    data.
40
41                    For  di_path_prop_lookup_int64(), the address to a pointer
42                    to an array of 64-bit  integers  containing  the  property
43                    data.
44
45                    For  di_path_prop_lookup_ints(),  the address to a pointer
46                    to an array of integers containing the property data.
47
48                    For  di_path_prop_lookup_strings(),  the  address   to   a
49                    pointer  to  a  buffer containing a concatenation of null-
50                    terminated strings containing the property data.
51
52

DESCRIPTION

54       These functions return the value of a known property name and type.
55
56
57       All memory allocated by these functions is managed by the  library  and
58       must not be freed by the caller.
59

RETURN VALUES

61       If  the  property  is  found,  the  number  of  entries in prop_data is
62       returned. Otherwise, -1 is returned and errno is set  to  indicate  the
63       error.
64

ERRORS

66       These functions will fail if:
67
68       EINVAL     One of the arguments is invalid.
69
70
71       ENOTSUP    The snapshot contains no property information.
72
73
74       ENXIO      The path property does not exist.
75
76

ATTRIBUTES

78       See attributes(5)  for descriptions of the following attributes:
79
80
81
82
83       ┌─────────────────────────────┬─────────────────────────────┐
84       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
85       ├─────────────────────────────┼─────────────────────────────┤
86       │Interface Stability          │Committed                    │
87       ├─────────────────────────────┼─────────────────────────────┤
88       │MT-Level                     │Safe                         │
89       └─────────────────────────────┴─────────────────────────────┘
90

SEE ALSO

92       di_init(3DEVINFO), libdevinfo(3LIB), attributes(5)
93
94
95       Writing Device Drivers
96
97
98
99SunOS 5.11                        15 May 200d8i_path_prop_lookup_bytes(3DEVINFO)
Impressum