NAME | SYNOPSIS | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
For device nodes whose nodeid value is DI_PROM_NODEID (see di_nodeid(3)), 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(3) and di_prom_prop_next(3). 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(3),di_prom_prop_next(3),di_prom_prop_lookup_bytes(3)libdevinfo(3),malloc(3C),attributes(5),openprom(7D)
NAME | SYNOPSIS | DESCRIPTION | PARAMETERS | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO