Go to the source code of this file.
|
static ABTU_ret_err int | list_calloc (alloc_list *p_alloc_list, size_t size, void **p_ptr) |
|
static ABTU_ret_err int | list_realloc (alloc_list *p_alloc_list, size_t old_size, size_t new_size, void **p_ptr) |
|
static void | list_free_all (void *p_head) |
|
static ABTU_ret_err int | id_list_create (alloc_list *p_alloc_list, ABTD_affinity_id_list **pp_id_list) |
|
static ABTU_ret_err int | id_list_add (alloc_list *p_alloc_list, ABTD_affinity_id_list *p_id_list, int id, uint32_t num, int stride) |
|
static ABTU_ret_err int | list_create (alloc_list *p_alloc_list, ABTD_affinity_list **pp_affinity_list) |
|
static ABTU_ret_err int | list_add (alloc_list *p_alloc_list, ABTD_affinity_list *p_list, ABTD_affinity_id_list *p_base, uint32_t num, int stride) |
|
static int | is_whitespace (char c) |
|
static int | consume_int (const char *str, uint32_t *p_index, int *p_val) |
|
static int | consume_pint (const char *str, uint32_t *p_index, int *p_val) |
|
static int | consume_symbol (const char *str, uint32_t *p_index, char symbol) |
|
static ABTU_ret_err int | parse_es_id_list (alloc_list *p_alloc_list, const char *affinity_str, uint32_t *p_index, ABTD_affinity_id_list **pp_affinity_id_list) |
|
static ABTU_ret_err int | parse_list (alloc_list *p_alloc_list, const char *affinity_str, ABTD_affinity_list **pp_affinity_list) |
|
◆ ALLOC_HEADER_SIZE
#define ALLOC_HEADER_SIZE |
◆ MAX_NUM_ELEMS
#define MAX_NUM_ELEMS (1024 * 1024) |
◆ alloc_header
◆ consume_int()
static int consume_int |
( |
const char * |
str, |
|
|
uint32_t * |
p_index, |
|
|
int * |
p_val |
|
) |
| |
|
static |
◆ consume_pint()
static int consume_pint |
( |
const char * |
str, |
|
|
uint32_t * |
p_index, |
|
|
int * |
p_val |
|
) |
| |
|
static |
◆ consume_symbol()
static int consume_symbol |
( |
const char * |
str, |
|
|
uint32_t * |
p_index, |
|
|
char |
symbol |
|
) |
| |
|
static |
◆ id_list_add()
static ABTU_ret_err int id_list_add |
( |
alloc_list * |
p_alloc_list, |
|
|
ABTD_affinity_id_list * |
p_id_list, |
|
|
int |
id, |
|
|
uint32_t |
num, |
|
|
int |
stride |
|
) |
| |
|
static |
◆ id_list_create()
◆ is_whitespace()
static int is_whitespace |
( |
char |
c | ) |
|
|
inlinestatic |
◆ list_add()
static ABTU_ret_err int list_add |
( |
alloc_list * |
p_alloc_list, |
|
|
ABTD_affinity_list * |
p_list, |
|
|
ABTD_affinity_id_list * |
p_base, |
|
|
uint32_t |
num, |
|
|
int |
stride |
|
) |
| |
|
static |
◆ list_calloc()
◆ list_create()
◆ list_free_all()
static void list_free_all |
( |
void * |
p_head | ) |
|
|
static |
◆ list_realloc()
static ABTU_ret_err int list_realloc |
( |
alloc_list * |
p_alloc_list, |
|
|
size_t |
old_size, |
|
|
size_t |
new_size, |
|
|
void ** |
p_ptr |
|
) |
| |
|
static |
◆ parse_es_id_list()
static ABTU_ret_err int parse_es_id_list |
( |
alloc_list * |
p_alloc_list, |
|
|
const char * |
affinity_str, |
|
|
uint32_t * |
p_index, |
|
|
ABTD_affinity_id_list ** |
pp_affinity_id_list |
|
) |
| |
|
static |
◆ parse_list()
static ABTU_ret_err int parse_list |
( |
alloc_list * |
p_alloc_list, |
|
|
const char * |
affinity_str, |
|
|
ABTD_affinity_list ** |
pp_affinity_list |
|
) |
| |
|
static |