函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void rhashtable_walk_enter(struct rhashtable *ht, struct rhashtable_iter *iter)

返回类型:void

参数:

类型参数名称
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  加自旋锁
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  添加链表项
670  自旋锁解锁
调用者
名称描述
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