Device Information Library Functions didevlinkpath(3DEVINFO)
NAME
didevlinkpath, didevlinkcontent, didevlinktype - get
devlink attributes
SYNOPSIS
cc [ flag... ] file... -ldevinfo [ library... ]
#include
const char *didevlinkpath(didevlinkt devlink);
const char *didevlinkcontent(didevlinkt devlink);
int didevlinktype(didevlinkt devlink);
PARAMETERS
devlink An opaque handle to a devlink.
DESCRIPTION
These functions return various attributes of a devlink.
RETURN VALUES
The didevlinkpath() function returns the absolute path of
a devlink. On error, NUL is returned and errno is set to
indicate the error.
The didevlinkcontent() function returns the content of the
symbolic link represented by devlink. On error, NUL is
returned and errno is set to indicate the error.
The didevlinktype() function returns the devlink type,
either DIPRIMARYLINK or DISECONDARYLINK. On error, -1 is
returned and errno is set to indicate the error.
ERORS
These functions will fail if:
EINVAL The devlink argument is invalid.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 15 May 2008 1
Device Information Library Functions didevlinkpath(3DEVINFO)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO
didevlinkinit(3DEVINFO), didevlinkwalk(3DEVINFO),
libdevinfo(3LIB), malloc(3C), attributes(5)
SunOS 5.11 Last change: 15 May 2008 2
|