函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:04:48
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct bpf_map *__bpf_map_get(struct fd f)

返回类型:struct bpf_map

参数:

类型参数名称
struct fdf
731  如果非file则返回:错误号
733  如果f_op不等于bpf_map_fops
734  fdput(f)
735  返回:错误号
738  返回: needed for tty driver, and maybe others
调用者
名称描述
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