DI_LNODE_NAME(3DEVINFO) | Device Information Library Functions | DI_LNODE_NAME(3DEVINFO) |
di_lnode_name, di_lnode_devinfo, di_lnode_devt - return libdevinfo lnode information
cc [ flag... ] file... -ldevinfo [ library... ] #include <libdevinfo.h> char *di_lnode_name(di_lnode_t lnode);
di_node_t di_lnode_devinfo(di_lnode_t lnode);
int di_lnode_devt(di_lnode_t lnode, dev_t *devt);
lnode
devt
These functions return libdevinfo lnode information.
The di_lnode_name() function returns a pointer to the name associated with lnode.
The di_lnode_devinfo() function returns a handle to the device node associated with lnode.
The di_lnode_devt() function sets the dev_t pointed to by the devt parameter to the dev_t associated with lnode.
The di_lnode_name() function returns a pointer to the name associated with lnode.
The di_lnode_devinfo() function returns a handle to the device node associated with lnode.
The di_lnode_devt() function returns 0 if the requested attribute exists in lnode and was returned. It returns −1 if the requested attribute does not exist and sets errno to indicate the error.
The di_lnode_devt() function will fail if:
EINVAL
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
MT-Level | Safe |
March 22, 2004 | OmniOS |