Miscellaneous APIs.
More...
Miscellaneous APIs.
Please include "libsysve.h" in the source file.
int ve_get_numa_node |
( |
unsigned * |
node | ) |
|
This function returns NUMA node number on which process is running.
- Parameters
-
[out] | node | NUMA node number is stored into the integer pointed by it. |
- Return values
-
0 | on sucess. |
-1 | is returned and errno is set on failure.
- EFAULT Argument points an invalid address.
|
int ve_get_veos_pid |
( |
void |
| ) |
|
this functions returns VEOS pid managing this process.
- Return values
-
pid | of VEOS on success. |
-1 | is returned and errno is set on failure. |
int ve_get_nonswappable |
( |
uint64_t * |
size | ) |
|
This function gets maximum size of non-swappable memory of a caller process at that time.
- Parameters
-
[out] | size | Pointer to the value in which maximum size in byte of non-swappable memory will be stored. |
- Return values
-
0 | on sucess. |
-1 | is returned and errno is set on failure. |