函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rhashtable.c Create Date:2022-07-27 07:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int rhashtable_walk_start_check(struct rhashtable_iter *iter)__acquires(RCU)

返回类型:int

参数:

类型参数名称
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  加自旋锁
716  如果tbl删除链表项
718  自旋锁解锁
720  如果end_of_table则返回:0
722  如果非tbl
723  tbl等于rht_dereference_rcu(tbl, ht)
724  slot等于0
725  skip等于0
726  返回:负EAGAIN
729  如果p且非rhlist
735  skip等于0
737  skip自加
738  如果p恒等于p
739  skip等于skip
740  转到:found
743  p = NULL
744  否则如果prhlist
750  skip等于0
752 list循环
755  skip自加
756  如果list恒等于list
757  p等于p
758  skip等于skip
759  转到:found
763  p = NULL
765  found :
766  返回:0
调用者
名称描述
rhashtable_walk_start