Defines | |
#define | l4sigma0_kip_for_each_feature(s) for (s += strlen(s) + 1; *s; s += strlen(s) + 1) |
Cycle through kernel features given in the KIP.
Cycles through all KIP kernel feature strings. s must be a character pointer (char *) initialized with l4sigma0_kip_version_string(). | |
Functions | |
L4_CV l4_kernel_info_t * | l4sigma0_kip (void) |
Return the address of the kernel info page. | |
L4_CV int | l4sigma0_kip_map_to (l4_threadid_t pager, void *addr) |
Map the kernel info page from pager to addr. | |
L4_CV l4_kernel_info_t * | l4sigma0_kip_map (l4_threadid_t pager) |
Map the kernel info page. | |
L4_CV void | l4sigma0_kip_unmap (void) |
Unmap the kernel info page.
Unmaps the kernel info page from the library private address. | |
L4_CV l4_umword_t | l4sigma0_kip_version (void) |
Get the kernel version.
Returns the kernel version. The KIP will be mapped if not already mapped. The KIP will not be unmapped again. | |
L4_CV const char * | l4sigma0_kip_version_string (void) |
Get the kernel version string.
Returns the kernel version banner string. The KIP will be mapped if not already mapped. The KIP will not be unmapped again. | |
L4_CV int | l4sigma0_kip_kernel_is_ux (void) |
Return whether the kernel is running native or under UX.
Returns whether the kernel is running natively or under UX. The KIP will be mapped if not already mapped. The KIP will not be unmapped again. | |
L4_CV int | l4sigma0_kip_kernel_has_feature (const char *str) |
Check if kernel supports a feature. | |
L4_CV unsigned long | l4sigma0_kip_kernel_abi_version (void) |
Return kernel ABI version. |
#define l4sigma0_kip_for_each_feature | ( | s | ) | for (s += strlen(s) + 1; *s; s += strlen(s) + 1) |
Cycle through kernel features given in the KIP.
Cycles through all KIP kernel feature strings. s must be a character pointer (char *) initialized with l4sigma0_kip_version_string().
L4_CV l4_kernel_info_t* l4sigma0_kip | ( | void | ) |
Return the address of the kernel info page.
L4_CV int l4sigma0_kip_map_to | ( | l4_threadid_t | pager, | |
void * | addr | |||
) |
Map the kernel info page from pager to addr.
pager | pager implementing the Sigma0 protocol | |
addr | address to map KIP to |
L4_CV l4_kernel_info_t* l4sigma0_kip_map | ( | l4_threadid_t | pager | ) |
Map the kernel info page.
Maps the kernel info page to a library private address.
pager | pager implementing the Sigma0 protocol (use L4_INVALID_ID to call sigma0) |
L4_CV void l4sigma0_kip_unmap | ( | void | ) |
Unmap the kernel info page.
Unmaps the kernel info page from the library private address.
L4_CV l4_umword_t l4sigma0_kip_version | ( | void | ) |
Get the kernel version.
Returns the kernel version. The KIP will be mapped if not already mapped. The KIP will not be unmapped again.
L4_CV const char* l4sigma0_kip_version_string | ( | void | ) |
Get the kernel version string.
Returns the kernel version banner string. The KIP will be mapped if not already mapped. The KIP will not be unmapped again.
L4_CV int l4sigma0_kip_kernel_is_ux | ( | void | ) |
Return whether the kernel is running native or under UX.
Returns whether the kernel is running natively or under UX. The KIP will be mapped if not already mapped. The KIP will not be unmapped again.
L4_CV int l4sigma0_kip_kernel_has_feature | ( | const char * | str | ) |
Check if kernel supports a feature.
str | Feature name to check. |
L4_CV unsigned long l4sigma0_kip_kernel_abi_version | ( | void | ) |
Return kernel ABI version.