Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_map_value_locked

Proto:void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, bool lock_src)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
void *dst
void *src
boollock_src
304  If lock_src Then lock = src + >=0 valid offset, <0 error
306  Else lock = dst + >=0 valid offset, <0 error
308  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
309  ____bpf_spin_lock(lock)
310  py everything but bpf_spin_lock
311  ____bpf_spin_unlock(lock)
312  preempt_enable()
Caller
NameDescribe
htab_map_update_elemCalled from syscall or from eBPF program
array_map_update_elemCalled from syscall or from eBPF program
cgroup_storage_update_elem