| 58 |
}; |
}; |
| 59 |
typedef struct user_list_pool_t USER_LIST_POOL; |
typedef struct user_list_pool_t USER_LIST_POOL; |
| 60 |
|
|
| 61 |
static char user_list_shm_name[FILE_PATH_LEN]; |
static char user_list_shm_name[FILE_NAME_LEN]; |
| 62 |
static USER_LIST_POOL *p_user_list_pool = NULL; |
static USER_LIST_POOL *p_user_list_pool = NULL; |
| 63 |
static TRIE_NODE *p_trie_action_dict = NULL; |
static TRIE_NODE *p_trie_action_dict = NULL; |
| 64 |
|
|
| 507 |
return 0; |
return 0; |
| 508 |
} |
} |
| 509 |
|
|
| 510 |
int user_list_pool_cleanup(void) |
void user_list_pool_cleanup(void) |
| 511 |
{ |
{ |
| 512 |
if (p_user_list_pool == NULL) |
if (p_user_list_pool == NULL) |
| 513 |
{ |
{ |
| 514 |
return -1; |
return; |
| 515 |
} |
} |
| 516 |
|
|
| 517 |
if (semctl(p_user_list_pool->semid, 0, IPC_RMID) == -1) |
if (semctl(p_user_list_pool->semid, 0, IPC_RMID) == -1) |
| 534 |
|
|
| 535 |
p_trie_action_dict = NULL; |
p_trie_action_dict = NULL; |
| 536 |
} |
} |
|
|
|
|
return 0; |
|
| 537 |
} |
} |
| 538 |
|
|
| 539 |
int set_user_list_pool_shm_readonly(void) |
int set_user_list_pool_shm_readonly(void) |