NAME | SYNOPSIS | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
#include <libdevinfo.h>di_prom_handle_t di_prom_init();
For device nodes whose nodeid value is DI_PROM_NODEID (see di_nodeid(3DEVINFO) ), additional properties may be retrieved from the PROM . di_prom_init() returns a handle that is used to retrieve such properties. This handle is passed to di_prom_prop_lookup_bytes(3DEVINFO) and di_prom_prop_next(3DEVINFO) . di_prom_fini() destroys the handle and all handles to PROM device information obtained from that handle.
Upon successful completion, a handle is returned. Otherwise, DI_PROM_HANDLE_NIL is returned and errno is set to indicate the error.
di_prom_init() sets errno to any error code that may also be set by openprom(7D) or malloc(3C) .
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
MT Level | Safe |
Interface Stability | Evolving |
di_nodeid(3DEVINFO) ,di_prom_prop_next(3DEVINFO) ,di_prom_prop_lookup_bytes(3DEVINFO) libdevinfo(3DEVINFO) ,malloc(3C) ,attributes(5) ,openprom(7D)
NAME | SYNOPSIS | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO