函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bpf.h Create Date:2022-07-27 06:54:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_map_flags_to_cap

函数原型:static inline u32 bpf_map_flags_to_cap(struct bpf_map *map)

返回类型:u32

参数:

类型参数名称
struct bpf_map *map
631  access_flags等于map_flags按位与Flags for accessing BPF object from program side. 按位或BPF_F_WRONLY_PROG的值
636  如果access_flags按位与Flags for accessing BPF object from program side. 则返回:BPF_MAP_CAN_READ
638  否则如果access_flags按位与BPF_F_WRONLY_PROG则返回:BPF_MAP_CAN_WRITE
640  否则返回:BPF_MAP_CAN_READ按位或BPF_MAP_CAN_WRITE
调用者
名称描述
check_map_access_type