函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_flags

函数原型:static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, u64 map_flags)

返回类型:int

参数:

类型参数名称
struct bpf_htab *htab
struct htab_elem *l_old
u64map_flags
807  如果l_oldmap_flags按位与spin_lock-ed map_lookup/map_update 的反的值恒等于create new element if it didn't exist 则返回:负EEXIST
811  如果非l_oldmap_flags按位与spin_lock-ed map_lookup/map_update 的反的值恒等于update existing element 则返回:负ENOENT
815  返回:0
调用者
名称描述
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