Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\map_in_map.c Create Date:2022-07-28 13:13:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_map_fd_get_ptr

Proto:void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file, int ufd)

Type:void

Parameter:

TypeParameterName
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  If IS_ERR(inner_map) Then Return inner_map
99  If bpf_map_meta_equal(inner_map_meta, inner_map) Then bpf_map_inc(inner_map)
101  Else inner_map = ERR_PTR( - EINVAL)
104  fdput(f)
105  Return inner_map