Skip Navigation Links | |
Exit Print View | |
man pages section 3: Extended Library Functions Oracle Solaris 10 1/13 Information Library |
Extended Library Functions - Part 1
Extended Library Functions - Part 2
dat_registry_add_provider(3DAT)
dat_registry_list_providers(3DAT)
dat_registry_remove_provider(3DAT)
dat_set_consumer_context(3DAT)
devid_deviceid_to_nmlist(3DEVID)
di_link_next_by_lnode(3DEVINFO)
di_link_next_by_node(3DEVINFO)
di_lnode_private_get(3DEVINFO)
di_lnode_private_set(3DEVINFO)
di_minor_private_get(3DEVINFO)
di_minor_private_set(3DEVINFO)
di_prom_prop_lookup_bytes(3DEVINFO)
di_prom_prop_lookup_ints(3DEVINFO)
di_prom_prop_lookup_strings(3DEVINFO)
di_prop_lookup_bytes(3DEVINFO)
di_prop_lookup_int64(3DEVINFO)
di_prop_lookup_strings(3DEVINFO)
DmiListComponentsByClass(3DMI)
ea_match_object_catalog(3EXACCT)
Extended Library Functions - Part 3
Extended Library Functions - Part 4
- access PROM device information
cc [ flag... ] file... -ldevinfo [ library... ] #include <libdevinfo.h> di_prom_prop_t di_prom_prop_next(di_prom_handle_t ph, di_node_t node, di_prom_prop_t prom_prop);
char *di_prom_prop_name(di_prom_prop_t prom_prop);
int di_prom_prop_data(di_prom_prop_t prom_prop, uchar_t **prop_data);
Handle to a device node in the snapshot of kernel device tree.
PROM handle
Handle to a PROM property.
Address of a pointer.
The di_prom_prop_next() function obtains a handle to the next property on the PROM property list associated with node. If prom_prop is DI_PROM_PROP_NIL, the first property associated with node is returned.
The di_prom_prop_name() function returns the name of the prom_prop property.
The di_prom_prop_data() function returns the value of the prom_prop property. The return value is a non-negative integer specifying the size in number of bytes in prop_data.
All memory allocated by these functions is managed by the library and must not be freed by the caller.
The di_prom_prop_data() function returns the number of bytes in prop_data and prop_data is updated to point to a byte array containing the property value. If 0 is returned, the property is a boolean property and the existence of this property indicates the value is true.
The di_prom_prop_name() function returns a pointer to a string that contains the name of prom_prop.
The di_prom_prop_next() function returns a handle to the next PROM property. DI_PROM_PROP_NIL is returned if no additional properties exist.
See openprom(7D) for a description of possible errors.
See attributes(5) for descriptions of the following attributes:
|