Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:52:15
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: error is returned, fd is released.* On success caller should complete fd access with matching fdput()

Proto:struct bpf_map *__bpf_map_get(struct fd f)

Type:struct bpf_map

Parameter:

TypeParameterName
struct fdf
731  If Not file Then Return ERR_PTR( - EBADF)
733  If f_op != bpf_map_fops Then
734  fdput(f)
735  Return ERR_PTR( - EINVAL)
738  Return needed for tty driver, and maybe others
Caller
NameDescribe
bpf_map_get_with_uref
map_lookup_elem
map_update_elem
map_delete_elem
map_get_next_key
map_lookup_and_delete_elem
map_freeze
replace_map_fd_with_map_ptrlook for pseudo eBPF instructions that access map FDs and* replace them with actual map pointers
bpf_map_meta_alloc
bpf_map_fd_get_ptr