FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
sysfs.c File Reference
+ Include dependency graph for sysfs.c:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__clib_export clib_error_tclib_sysfs_write (char *file_name, char *fmt,...)
 
__clib_export clib_error_tclib_sysfs_read (char *file_name, char *fmt,...)
 
__clib_export u8clib_sysfs_link_to_name (char *link)
 
clib_error_tclib_sysfs_set_nr_hugepages (int numa_node, int log2_page_size, int nr)
 
static clib_error_tclib_sysfs_get_xxx_hugepages (char *type, int numa_node, int log2_page_size, int *val)
 
clib_error_tclib_sysfs_get_free_hugepages (int numa_node, int log2_page_size, int *v)
 
clib_error_tclib_sysfs_get_nr_hugepages (int numa_node, int log2_page_size, int *v)
 
clib_error_tclib_sysfs_get_surplus_hugepages (int numa_node, int log2_page_size, int *v)
 
clib_error_tclib_sysfs_prealloc_hugepages (int numa_node, int log2_page_size, int nr)
 
__clib_export uwordclib_sysfs_list_to_bitmap (char *filename)
 

Function Documentation

◆ clib_sysfs_get_free_hugepages()

clib_error_t* clib_sysfs_get_free_hugepages ( int  numa_node,
int  log2_page_size,
int *  v 
)

Definition at line 221 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_get_nr_hugepages()

clib_error_t* clib_sysfs_get_nr_hugepages ( int  numa_node,
int  log2_page_size,
int *  v 
)

Definition at line 227 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_get_surplus_hugepages()

clib_error_t* clib_sysfs_get_surplus_hugepages ( int  numa_node,
int  log2_page_size,
int *  v 
)

Definition at line 233 of file sysfs.c.

+ Here is the call graph for this function:

◆ clib_sysfs_get_xxx_hugepages()

static clib_error_t* clib_sysfs_get_xxx_hugepages ( char *  type,
int  numa_node,
int  log2_page_size,
int *  val 
)
static

Definition at line 168 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_link_to_name()

__clib_export u8* clib_sysfs_link_to_name ( char *  link)

Definition at line 91 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_list_to_bitmap()

__clib_export uword* clib_sysfs_list_to_bitmap ( char *  filename)

Definition at line 267 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_prealloc_hugepages()

clib_error_t* clib_sysfs_prealloc_hugepages ( int  numa_node,
int  log2_page_size,
int  nr 
)

Definition at line 240 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_read()

__clib_export clib_error_t* clib_sysfs_read ( char *  file_name,
char *  fmt,
  ... 
)

Definition at line 51 of file sysfs.c.

+ Here is the caller graph for this function:

◆ clib_sysfs_set_nr_hugepages()

clib_error_t* clib_sysfs_set_nr_hugepages ( int  numa_node,
int  log2_page_size,
int  nr 
)

Definition at line 118 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_sysfs_write()

__clib_export clib_error_t* clib_sysfs_write ( char *  file_name,
char *  fmt,
  ... 
)

Definition at line 27 of file sysfs.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: