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)
- return virtualization environment domain parameters
cc [ flag... ] file... -lv12n [ library... ] #include <libv12n.h> int v12n_capabilities();
int v12n_domain_roles();
int v12n_domain_uuid(uuid_t uuid);
size_t v12n_domain_name(char *buf, size_t buflen);
size_t v12n_ctrl_domain(char *buf, size_t buflen);
size_t v12n_chassis_serialno(char *buf, size_t buflen);
The v12n_capabilities() function returns the virtualization capabilities mask of the current domain. The virtualization capabilities bit mask consists of the following values:
Virtualization is supported on this domain.
Virtualization is enabled on this domain.
Logical Domains is the supported virtualization implementation.
The v12n_domain_roles() function returns the virtualization domain role mask. The virtualization domain role mask consists of the following values:
If the virtualization implementation is Logical Domains, and this bit is one, the current domain is a control domain. If this bit is zero, the current domain is a guest domain.
Current domain is an I/O domain.
Current domain is a service domain.
Current domain is an root I/O domain.
The v12n_domain_uuid() function stores the universally unique identifier (UUID) for the current virtualization domain in the uuid argument. See the libuuid(3LIB) manual page.
The v12n_domain_name() function stores the name of the current virtualization domain in the location specified by buf. buflen specifies the size in bytes of the buffer. If the buffer is too small to hold the complete null-terminated name, the first buflen bytes of the name are stored in the buffer. A buffer of size V12N_NAME_MAX is sufficient to hold any domain name. If buf is NULL or buflen is 0, the name is not copied into the buffer.
The v12n_ctrl_domain() function stores the control domain or dom0 network node name of the current domain in the location specified by buf. Note that a domain's control domain is volatile during a domain migration. The information returned by this function might be stale if the domain was in the process of migrating. buflen specifies the size in bytes of the buffer. If the buffer is too small to hold the complete null-terminated name, the first buflen bytes of the name are stored in the buffer. A buffer of size V12N_NAME_MAX is sufficient to hold the control domain node name string. If buf is NULL or buflen is 0, the name is not copied into the buffer.
The v12n_chassis_serialno() function stores the chassis serial number of the platform on which the current domain is running in the location specified by buf. Note that the chassis serial number is volatile during a domain migration. The information returned by this function might be stale if the domain was in the process of migrating. buflen specifies the size in bytes of the buffer. If the buffer is too small to hold the complete null-terminated name, the first buflen bytes of the name are stored in the buffer. A buffer of size V12N_NAME_MAX is sufficient to hold any chassis serial number string. If buf is NULL or buflen is 0, the name is not copied into the buffer.
On successful completion, the v12n_capabilties() and v12n_domain_roles() functions return a non-negative bit mask. Otherwise, the v12n_domain_roles() function returns -1 and sets errno to indicate the error.
On successful completion, the v12n_domain_uuid() function returns 0. Otherwise, the v12n_domain_uuid() function returns -1 and sets errno to indicate the error.
On successful completion, the v12n_domain_name(), v12n_ctrl_domain(), and v12n_chassis_serialno() functions return the buffer size required to hold the full non-terminated string. Otherwise, these functions return -1 and set errno to indicate the error.
The v12n_domain_roles() function fails with EPERM when the calling process has an ID other than the privileged user.
The v12n_domain_name() function will fail if:
The calling process has an ID other than the privileged user.
Virtualization is not supported or enabled on this domain.
buf points to an illegal address.
The sun4v machine description is inaccessible or has no uuid node.
The v12n_domain_uuid() function will fail if:
The calling process has an ID other than the privileged user.
Virtualization is not supported or enabled on this domain.
buf points to an illegal address.
The sun4v machine description is inaccessible or has no uuid node.
The v12n_ctrl_domain() function will fail if:
The calling process has an ID other than the privileged user.
Virtualization is not supported or enabled on this domain.
buf points to an illegal address.
The domain service on the control domain did not respond within the timeout value.
The v12n_chassis_serialno() function will fail if:
The calling process has an ID other than the privileged user.
Virtualization is not supported or enabled on this domain.
buf points to an illegal address.
The domain service on the control domain did not respond within the timeout value.
See attributes(5) for descriptions of the following attributes:
|