Skip Navigation Links | |
Exit Print View | |
man pages section 3: Extended Library Functions, Volume 1 Oracle Solaris 11.1 Information Library |
Extended Library Functions, Volume 1
CIRCLEQ_HEAD_INITIALIZER(3EXT)
cpc_walk_generic_events_all(3CPC)
cpc_walk_generic_events_pic(3CPC)
ct_dev_status_get_aset(3CONTRACT)
ct_dev_status_get_dev_state(3CONTRACT)
ct_dev_status_get_minor(3CONTRACT)
ct_dev_status_get_noneg(3CONTRACT)
ct_dev_tmpl_clear_noneg(3CONTRACT)
ct_dev_tmpl_get_aset(3CONTRACT)
ct_dev_tmpl_get_minor(3CONTRACT)
ct_dev_tmpl_get_noneg(3CONTRACT)
ct_dev_tmpl_set_aset(3CONTRACT)
ct_dev_tmpl_set_minor(3CONTRACT)
ct_dev_tmpl_set_noneg(3CONTRACT)
ct_event_read_critical(3CONTRACT)
ct_pr_event_get_exitstatus(3CONTRACT)
ct_pr_event_get_gcorefile(3CONTRACT)
ct_pr_event_get_pcorefile(3CONTRACT)
ct_pr_event_get_pid(3CONTRACT)
ct_pr_event_get_ppid(3CONTRACT)
ct_pr_event_get_sender(3CONTRACT)
ct_pr_event_get_senderct(3CONTRACT)
ct_pr_event_get_signal(3CONTRACT)
ct_pr_event_get_zcorefile(3CONTRACT)
ct_pr_status_get_contracts(3CONTRACT)
ct_pr_status_get_fatal(3CONTRACT)
ct_pr_status_get_members(3CONTRACT)
ct_pr_status_get_param(3CONTRACT)
ct_pr_status_get_svc_aux(3CONTRACT)
ct_pr_status_get_svc_creator(3CONTRACT)
ct_pr_status_get_svc_ctid(3CONTRACT)
ct_pr_status_get_svc_fmri(3CONTRACT)
ct_pr_tmpl_get_fatal(3CONTRACT)
ct_pr_tmpl_get_param(3CONTRACT)
ct_pr_tmpl_get_svc_aux(3CONTRACT)
ct_pr_tmpl_get_svc_fmri(3CONTRACT)
ct_pr_tmpl_get_transfer(3CONTRACT)
ct_pr_tmpl_set_fatal(3CONTRACT)
ct_pr_tmpl_set_param(3CONTRACT)
ct_pr_tmpl_set_svc_aux(3CONTRACT)
ct_pr_tmpl_set_svc_fmri(3CONTRACT)
ct_pr_tmpl_set_transfer(3CONTRACT)
ct_status_get_cookie(3CONTRACT)
ct_status_get_critical(3CONTRACT)
ct_status_get_holder(3CONTRACT)
ct_status_get_informative(3CONTRACT)
ct_status_get_nevents(3CONTRACT)
ct_status_get_nevid(3CONTRACT)
ct_status_get_ntime(3CONTRACT)
ct_status_get_qtime(3CONTRACT)
ct_status_get_state(3CONTRACT)
ct_status_get_zoneid(3CONTRACT)
ct_tmpl_get_critical(3CONTRACT)
ct_tmpl_get_informative(3CONTRACT)
ct_tmpl_set_critical(3CONTRACT)
ct_tmpl_set_informative(3CONTRACT)
dat_evd_clear_unwaitable(3DAT)
dat_get_consumer_context(3DAT)
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_path_client_devfs_path(3DEVINFO)
di_path_client_next_path(3DEVINFO)
di_path_phci_next_path(3DEVINFO)
di_path_prop_lookup_bytes(3DEVINFO)
di_path_prop_lookup_int64s(3DEVINFO)
di_path_prop_lookup_ints(3DEVINFO)
di_path_prop_lookup_strings(3DEVINFO)
di_path_prop_strings(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)
ea_match_object_catalog(3EXACCT)
- access path property information
cc [ flag... ] file... -ldevinfo [ library... ] #include <libdevinfo.h> int di_path_prop_bytes(di_path_prop_t prop, uchar_t **prop_data);
int di_path_prop_ints(di_path_prop_t prop, int **prop_data);
int di_path_prop_int64s(di_path_prop_t prop, int64_t **prop_data);
char *di_path_prop_name(di_path_prop_t prop);
int di_path_prop_strings(di_path_prop_t prop, char **prop_data);
int di_path_prop_type(di_path_prop_t prop);
A handle to a property returned by di_path_prop_next(3DEVINFO).
For di_path_prop_bytes(), the address of a pointer to an unsigned character.
For di_path_prop_ints(), the address of a pointer to an integer.
For di_path_prop_int64(), the address of a pointer to a 64-bit integer.
For di_path_prop_strings(), the address of pointer to a character.
These functions access information associated with path property values and attributes such as the property name or data type.
The di_path_prop_name() function returns a pointer to a string containing the name of the property.
The di_path_prop_type() function returns the type of the path property. The type determines the appropriate interface to access property values. Possible property types are the same as for di_prop_type(3DEVINFO), excluding DI_PROP_TYPE_UNKNOWN and DI_PROP_UNDEFINED. Thus, di_path_prop_type() can return one of the following constants:
Use di_path_prop_ints() to access property data.
Use di_path_prop_int64s() to access property data.
Use di_path_prop_strings() to access property data.
Use di_path_prop_bytes() to access property data.
The di_path_prop_bytes() function returns the property data as a series of unsigned characters.
The di_path_prop_ints() function returns the property data as a series of integers.
The di_path_prop_int64s() function returns the property data as a series of integers.
The di_path_prop_strings() function returns the property data as a concatenation of null-terminated strings.
Upon successful completion, di_path_prop_bytes(), di_path_prop_ints(), di_path_prop_int64s(), and di_path_prop_strings() return a non-negative value, indicating the number of entries in the property value buffer. If the property is found, the number of entries in prop_data is returned. Otherwise, -1 is returned and errno is set to indicate the error.
For di_path_prop_bytes(), the number of entries is the number of unsigned characters contained in the buffer pointed to by prop_data.
For di_path_prop_ints(), the number of entries is the number of integers contained in the buffer pointed to by prop_data.
For di_path_prop_int64s(), the number of entries is the number of 64-bit integers contained in the buffer pointed to by prop_data.
For di_path_prop_strings(), the number of entries is the number of null-terminated strings contained in the buffer. The strings are stored in a concatenated format in the buffer.
The di_path_prop_name() function returns the name of the property.
The di_path_prop_type() function can return one of types described in the Description.
These functions will fail if:
One of the arguments is invalid. For example, the property type does not match the interface.
The snapshot contains no property information.
The path property does not exist.
See attributes(5) for descriptions of the following attributes:
|
di_path_prop_next(3DEVINFO), di_prop_type(3DEVINFO), libdevinfo(3LIB), attributes(5)