Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\helpers.c Create Date:2022-07-28 13:08:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:____bpf_get_local_storage

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_get_local_storage(struct bpf_map *map, u64 flags)

Type:u64

Parameter:

TypeParameterName
struct bpf_map *map
u64flags
339  stype = cgroup_storage_type(map)
343  storage = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(bpf_cgroup_storage[stype])
345  If stype == BPF_CGROUP_STORAGE_SHARED Then ptr = & ({
346  union{typeof(buf__val;char __c[1];}__u
346  If 1 Then __read_once_size( & (buf), __c, size of buf )
346  Else __read_once_size_nocheck( & (buf), __c, size of buf )
346  Do
346  When 0 cycle
346  __val
346  })->data[0]
347  Else ptr = this_cpu_ptr(percpu_buf)
350  Return ptr