函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-27 14:24:59
Last Modify:2022-05-23 09:15:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alloc_extra_elems

函数原型:static int alloc_extra_elems(struct bpf_htab *htab)

返回类型:int

参数:

类型参数名称
struct bpf_htab *htab
204  __percpupptr
208  pptr等于__alloc_percpu_gfp(*的长度, 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  如果非pptr则返回:负ENOMEM
213  遍历可用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  返回:0
调用者
名称描述
htab_map_alloc