Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-28 06:25:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hashtable_walk_enter - Initialise an iterator*@ht: Table to walk over*@iter: Hash table Iterator* This function prepares a hash table walk.* Note that if you restart a walk after rhashtable_walk_stop you* may see the same object twice

Proto:void rhashtable_walk_enter(struct rhashtable *ht, struct rhashtable_iter *iter)

Type:void

Parameter:

TypeParameterName
struct rhashtable *ht
struct rhashtable_iter *iter
660  ht = ht
661  p = NULL
662  slot = 0
663  skip = 0
664  end_of_table = 0
666  spin_lock( & lock)
667  tbl = cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(tbl, lockdep_is_held( & lock))
669  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
670  spin_unlock( & lock)
Caller
NameDescribe
test_bucket_stats
rhltable_walk_enterhltable_walk_enter - Initialise an iterator*@hlt: Table to walk over*@iter: Hash table Iterator* This function prepares a hash table walk.* Note that if you restart a walk after rhashtable_walk_stop you* may see the same object twice