Changeset 459 for trunk/kernel/libk
- Timestamp:
- Aug 13, 2018, 1:43:20 PM (6 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/htab.h
r457 r459 2 2 * htab.h - Generic embedded hash table definition. 3 3 * 4 * Authors Alain Greiner (2016,2017 )4 * Authors Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 42 42 // - From the pointer on <key>, we use an item type specific htab_index() function, 43 43 // to compute an <index> value, defining a subset of registered items. 44 // - As several items can have the same <index>, we use the item type specific defined44 // - As several items can have the same <index>, we use the item type specific 45 45 // htab_scan() function for a final associative search on the subset. 46 46 // - Each registered item is a structure, that must contain an embedded list_entry_t, -
trunk/kernel/libk/xhtab.h
r457 r459 2 2 * xhtab.h - Remote access embedded hash table definition. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 54 54 // 55 55 // Implementation Note: 56 // For each supported item type ***, you must define four item-type-specific56 // To inroduce a new item type, you must define the four item-type-specific 57 57 // functions specified below, and you must update the xhtab_init() function 58 58 // and the xhtab_item_type_t. … … 82 82 83 83 /****************************************************************************************** 84 * This structure define the root of the remote accessible hash table.84 * This structure define the root of the remotely accessible hash table. 85 85 *****************************************************************************************/ 86 86 … … 124 124 * This function safely remove an item from the hash table, using the lock protecting it. 125 125 ****************************************************************************************** 126 * @ xhtab_xp 127 * @ key 128 * @ xlist_ entry_xp: extended pointer on xlist_entry embedded in item to be removed.126 * @ xhtab_xp : extended pointer on hash table. 127 * @ key : local pointer on item identifier. 128 * @ xlist_xp : extended pointer on xlist_entry embedded in item to be removed. 129 129 * @ return 0 if success / return EINVAL if item not found. 130 130 *****************************************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.