Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_flags

Proto:static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, u64 map_flags)

Type:int

Parameter:

TypeParameterName
struct bpf_htab *htab
struct htab_elem *l_old
u64map_flags
807  If l_old && (map_flags & ~spin_lock-ed map_lookup/map_update ) == create new element if it didn't exist Then Return -EEXIST
811  If Not l_old && (map_flags & ~spin_lock-ed map_lookup/map_update ) == update existing element Then Return -ENOENT
815  Return 0
Caller
NameDescribe
htab_map_update_elemCalled from syscall or from eBPF program
htab_lru_map_update_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem