Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hashtable_walk_start_check - Start a hash table walk*@iter: Hash table iterator* Start a hash table walk at the current iterator position. Note that we take* the RCU lock in all cases including when we return an error. So you must

Proto:int rhashtable_walk_start_check(struct rhashtable_iter *iter)__acquires(RCU)

Type:int

Parameter:

TypeParameterName
struct rhashtable_iter *iter
710  ht = ht
711  rhlist = rhlist
713  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
715  spin_lock( & lock)
716  If tbl Then deletes entry from list
718  spin_unlock( & lock)
720  If end_of_table Then Return 0
722  If Not tbl Then
723  tbl = rht_dereference_rcu(tbl, ht)
724  slot = 0
725  skip = 0
726  Return -EAGAIN
729  If p && Not rhlist Then
735  skip = 0
737  skip++
738  If p == p Then
739  skip = skip
740  Go to found
743  p = NULL
744  Else if p && rhlist Then
750  skip = 0
752  When list cycle
755  skip++
756  If list == list Then
757  p = p
758  skip = skip
759  Go to found
763  p = NULL
765  found :
766  Return 0
Caller
NameDescribe
rhashtable_walk_start