Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rculist.h Create Date:2022-07-28 05:38:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hlist_replace_rcu - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* The @old entry will be replaced with the @new entry atomically.

Proto:static inline void hlist_replace_rcu(struct hlist_node *old, struct hlist_node *new)

Type:void

Parameter:

TypeParameterName
struct hlist_node *old
struct hlist_node *new
489  next = next
491  next = next
492  pprev = pprev
493  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( * (structhlist_node__rcu * * )pprev, new)
494  If next Then pprev = next
496  pprev = LIST_POISON2
Caller
NameDescribe
transfer_pidransfer_pid is an optimization of attach_pid(new), detach_pid(old)
init_aggr_kprobe
avc_node_replace