Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-28 13:09:44
Last Modify:2022-05-23 09:15:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:htab_elem_free_rcu

Proto:static void htab_elem_free_rcu(struct callback_head *head)

Type:void

Parameter:

TypeParameterName
struct callback_head *head
664  l = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(head, structhtab_elem, rcu)
665  htab = htab
671  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
672  __this_cpu_inc(bpf_prog_active)
673  htab_elem_free(htab, l)
674  __this_cpu_dec(bpf_prog_active)
675  preempt_enable()