函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\map_in_map.c Create Date:2022-07-27 14:30:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_map_fd_get_ptr

函数原型:void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file, int ufd)

返回类型:void

参数:

类型参数名称
struct bpf_map *map
struct file *map_file not used
intufd
94  f等于fdget(ufd)
95  inner_map等于 error is returned, fd is released.* On success caller should complete fd access with matching fdput()
96  如果是错误则返回:inner_map
99  如果bpf_map_meta_equal(inner_map_meta, inner_map)则bpf_map_inc(inner_map)
101  否则inner_map等于错误号
104  fdput(f)
105  返回:inner_map