Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_extra_elems

Proto:static int alloc_extra_elems(struct bpf_htab *htab)

Type:int

Parameter:

TypeParameterName
struct bpf_htab *htab
204  __percpu * pptr
208  pptr = __alloc_percpu_gfp( size of * , 8, GFP_USER | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
210  If Not pptr Then Return -ENOMEM
213  for_each_possible_cpu(cpu)
214  l = pcpu_freelist_pop( & freelist)
218  l_new = 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.(l, structhtab_elem, fnode)
219  per_cpu_ptr(pptr, cpu) = l_new
221  extra_elems = pptr
222  Return 0
Caller
NameDescribe
htab_map_alloc