Changeset 656 for trunk/kernel/libk/grdxt.h
- Timestamp:
- Dec 6, 2019, 12:07:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/grdxt.h
r635 r656 61 61 /******************************************************************************************* 62 62 * This function initialises the radix-tree descriptor, 63 * and allocates memory for the first level array of pointers. 63 64 * It must be called by a local thread. 64 * and allocates memory for the first level array of pointers.65 65 ******************************************************************************************* 66 66 * @ rt : pointer on the radix-tree descriptor. … … 77 77 /******************************************************************************************* 78 78 * This function releases all memory allocated to the radix-tree infrastructure. 79 * A warning message is printed on the kernel TXT0 if the radix tree is not empty. 79 80 * It must be called by a local thread. 80 * A warning message is printed on the kernel TXT0 if the radix tree is not empty.81 81 ******************************************************************************************* 82 82 * @ rt : pointer on the radix-tree descriptor. … … 86 86 /******************************************************************************************* 87 87 * This function insert a new item in the radix-tree. 88 * It dynamically allocates memory for new second and third level arrays if required. 88 89 * It must be called by a local thread. 89 * It dynamically allocates memory for new second and third level arrays if required.90 90 ******************************************************************************************* 91 91 * @ rt : pointer on the radix-tree descriptor. … … 100 100 /******************************************************************************************* 101 101 * This function removes an item identified by its key from the radix tree, 102 * and returns a pointer on the removed item. No memory is released. 102 103 * It must be called by a local thread. 103 * and returns a pointer on the removed item. No memory is released.104 104 ******************************************************************************************* 105 105 * @ rt : pointer on the radix-tree descriptor. … … 124 124 /******************************************************************************************* 125 125 * This function scan all radix-tree entries in increasing key order, starting from 126 * the value defined by the <start_key> argument, and return a pointer on the first valid 127 * registered item, and the found item key value. 126 128 * It must be called by a local thread. 127 * the value defined by the <key> argument, and return a pointer on the first valid128 * registered item, and the found item key value.129 129 ******************************************************************************************* 130 130 * @ rt : pointer on the radix-tree descriptor. 131 131 * @ start_key : key starting value for the scan. 132 132 * @ found_key : [out] buffer for found key value. 133 * @ return pointer on first valid item if found / return NULL if no tfound.133 * @ return pointer on first valid item if found / return NULL if no item found. 134 134 ******************************************************************************************/ 135 135 void * grdxt_get_first( grdxt_t * rt,
Note: See TracChangeset
for help on using the changeset viewer.