USRLOC - Hash table collision slot related functions
#include "hslot.h"
Go to the source code of this file.
Definition in file modules_k/p_usrloc/hslot.c.
| void deinit_slot | ( | hslot_t * | _s | ) |
| _s | hash slot |
Definition at line 148 of file modules_k/p_usrloc/hslot.c.
Referenced by free_udomain().

| void init_slot | ( | struct udomain * | _d, | |
| hslot_t * | _s, | |||
| int | n | |||
| ) |
Initialize slot structure.
| _d | domain for the hash slot | |
| _s | hash slot | |
| n | used to get the slot number (modulo number or locks) |
Definition at line 129 of file modules_k/p_usrloc/hslot.c.
Referenced by new_udomain().

| void slot_add | ( | hslot_t * | _s, | |
| struct urecord * | _r | |||
| ) |
Add an element to slot linked list.
| _s | hash slot | |
| _r | added record |
Definition at line 170 of file modules_k/p_usrloc/hslot.c.
Referenced by mem_insert_urecord().

| void slot_rem | ( | hslot_t * | _s, | |
| struct urecord * | _r | |||
| ) |
| _s | hash slot | |
| _r | removed record |
Definition at line 189 of file modules_k/p_usrloc/hslot.c.
Referenced by mem_delete_urecord().

| int ul_init_locks | ( | void | ) |
Definition at line 44 of file modules_k/p_usrloc/hslot.c.
Referenced by mod_init().

| void ul_lock_idx | ( | int | idx | ) |
| idx | lock index |
Definition at line 107 of file modules_k/p_usrloc/hslot.c.
Referenced by lock_udomain(), and lock_ulslot().

| void ul_release_idx | ( | int | idx | ) |
| idx | lock index |
Definition at line 117 of file modules_k/p_usrloc/hslot.c.
Referenced by ul_unlock_locks(), unlock_udomain(), and unlock_ulslot().

| void ul_unlock_locks | ( | void | ) |
Destroy all locks on the list.
Definition at line 74 of file modules_k/p_usrloc/hslot.c.
Referenced by destroy().

1.7.1