Changeset 610 for trunk/kernel/libk/xhtab.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/xhtab.c
r603 r610 40 40 41 41 /////////////////////////////////////////////////////////////////////////////////////////// 42 // vfs_dentry_t42 // XHTAB_DENTRY_TYPE 43 43 // This functions compute the hash index from the key, that is the directory entry name. 44 44 /////////////////////////////////////////////////////////////////////////////////////////// … … 58 58 59 59 /////////////////////////////////////////////////////////////////////////////////////////// 60 // vfs_dentry_t60 // XHTAB_DENTRY_TYPE 61 61 // This functions returns the extended pointer on the item, from the extended pointer 62 62 // on xlist contained in the item. … … 67 67 static xptr_t xhtab_dentry_item_from_xlist( xptr_t xlist_xp ) 68 68 { 69 return XLIST_ELEMENT( xlist_xp , vfs_dentry_t , list);69 return XLIST_ELEMENT( xlist_xp , vfs_dentry_t , children ); 70 70 } 71 71 72 72 //////////////////////////////////////////////////////////////////////////////////////////// 73 // vfs_dentry_t73 // XHTAB_DENTRY_TYPE 74 74 // This function compares the identifier of an item to a given <key>. 75 75 // it returns true when the directory name matches the name pointed by the <key> argument. … … 96 96 97 97 //////////////////////////////////////////////////////////////////////////////////////////// 98 // vfs_dentry_t98 // XHTAB_DENTRY_TYPE 99 99 // This function print the item key, that is the name for a vfs_dentry_t. 100 100 //////////////////////////////////////////////////////////////////////////////////////////// … … 150 150 xlist_root_init( XPTR( local_cxy , &xhtab->roots[i] ) ); 151 151 } 152 153 #if DEBUG_XHTAB 154 printk("\n@@@ %s for xhtab (%x,%x)\n" 155 " - index_from_key = %x (@ %x)\n" 156 " - item_match_key = %x (@ %x)\n" 157 " - item_from_xlist = %x (@ %x)\n", 158 __FUNCTION__, local_cxy, xhtab, 159 xhtab->index_from_key , &xhtab->index_from_key, 160 xhtab->item_match_key , &xhtab->item_match_key, 161 xhtab->item_from_xlist, &xhtab->item_from_xlist ); 162 #endif 152 163 153 164 } // end xhtab_init()
Note: See TracChangeset
for help on using the changeset viewer.