Device Information Library Functions
dipathproplookupbytes(3DEVINFO)
NAME
dipathproplookupbytes, dipathproplookupint64s,
dipathproplookupints, dipathproplookupstrings -
search for a path property
SYNOPSIS
cc [ flag... ] file... -ldevinfo [ library... ]
#include
int dipathproplookupbytes(dipatht path,
const char *propname);
int dipathproplookupint64s(dipatht path,
const char *propname);
int dipathproplookupints(dipatht path,
const char *propname, char **propdata);
int dipathproplookupstrings(dipatht path,
const char *propname, char **propdata);
PARAMETERS
path The handle to a path node in a
diinit(3DEVINFO).
propname The name of property for which to search.
propdata For dipathproplookupbytes(), the address to
a pointer to an array of unsigned characters
containing the property data.
For dipathproplookupint64(), the address to
a pointer to an array of 64-bit integers con-
taining the property data.
For dipathproplookupints(), the address to
a pointer to an array of integers containing
the property data.
For dipathproplookupstrings(), the address
to a pointer to a buffer containing a concate-
nation of null-terminated strings containing
the property data.
SunOS 5.11 Last change: 15 May 2008 1
Device Information Library Functions
dipathproplookupbytes(3DEVINFO)
DESCRIPTION
These functions return the value of a known property name
and type.
All memory allocated by these functions is managed by the
library and must not be freed by the caller.
RETURN VALUES
If the property is found, the number of entries in propdata
is returned. Otherwise, -1 is returned and errno is set to
indicate the error.
ERORS
These functions will fail if:
EINVAL One of the arguments is invalid.
ENOTSUP The snapshot contains no property information.
ENXIO The path property does not exist.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO
diinit(3DEVINFO), libdevinfo(3LIB), attributes(5)
Writing Device Drivers
SunOS 5.11 Last change: 15 May 2008 2
Device Information Library Functions
dipathproplookupbytes(3DEVINFO)
SunOS 5.11 Last change: 15 May 2008 3
|