函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_copy_value

函数原型:static void pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, void *value, bool onallcpus)

返回类型:void

参数:

类型参数名称
struct bpf_htab *htab
void __percpu *pptr
void *value
boolonallcpus
700  如果非onallcpus
702  内存复制(this_cpu_ptr(pptr), value, value_size)
703  否则
704  size等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(value_size, 8)
705  off等于0
710  off加等于size
调用者
名称描述
alloc_htab_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem