Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pcpu_copy_value

Proto:static void pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, void *value, bool onallcpus)

Type:void

Parameter:

TypeParameterName
struct bpf_htab *htab
void __percpu *pptr
void *value
boolonallcpus
700  If Not onallcpus Then
702  No 3D Now!(this_cpu_ptr(pptr), value, value_size)
703  Else
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
Caller
NameDescribe
alloc_htab_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem