libsysve  2.7.6
MISC

Miscellaneous APIs. More...

Functions

int ve_get_numa_node (unsigned *node)
 This function returns NUMA node number on which process is running. More...
 
int ve_get_veos_pid (void)
 this functions returns VEOS pid managing this process. More...
 
int ve_get_nonswappable (uint64_t *size)
 This function gets maximum size of non-swappable memory of a caller process at that time. More...
 

Detailed Description

Miscellaneous APIs.

Please include "libsysve.h" in the source file.

Function Documentation

int ve_get_numa_node ( unsigned *  node)

This function returns NUMA node number on which process is running.

Parameters
[out]nodeNUMA node number is stored into the integer pointed by it.
Return values
0on sucess.
-1is 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
pidof VEOS on success.
-1is 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]sizePointer to the value in which maximum size in byte of non-swappable memory will be stored.
Return values
0on sucess.
-1is returned and errno is set on failure.