函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rculist_nulls.h Create Date:2022-07-27 07:05:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hlist_nulls_add_head_rcu*@n: the element to add to the hash list

函数原型:static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)

返回类型:void

参数:

类型参数名称
struct hlist_nulls_node *n
struct hlist_nulls_head *h
94  first等于first
96  next等于first
97  WRITE_ONCE(pprev, & first)
98  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(hlist_nulls_first_rcu(h), n)
99  如果非判定指针为空WRITE_ONCE(pprev, & next)
调用者
名称描述
htab_map_update_elemCalled from syscall or from eBPF program
htab_lru_map_update_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem
__io_worker_idleNo work, worker going to sleep
create_io_worker
hlist_nulls_add_tail_rcuhlist_nulls_add_tail_rcu*@n: the element to add to the hash list
__sk_nulls_add_node_rcu