Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bpf.h Create Date:2022-07-28 05:54:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_map_flags_to_cap

Proto:static inline u32 bpf_map_flags_to_cap(struct bpf_map *map)

Type:u32

Parameter:

TypeParameterName
struct bpf_map *map
631  access_flags = map_flags & (Flags for accessing BPF object from program side. | BPF_F_WRONLY_PROG)
636  If access_flags & Flags for accessing BPF object from program side. Then Return BPF_MAP_CAN_READ
638  Else if access_flags & BPF_F_WRONLY_PROG Then Return BPF_MAP_CAN_WRITE
640  Else Return BPF_MAP_CAN_READ | BPF_MAP_CAN_WRITE
Caller
NameDescribe
check_map_access_type