函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_map_show_fdinfo

函数原型:static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct file *filp
391  map等于 needed for tty driver, and maybe others
393  type等于0, jited等于0
395  如果map_type恒等于BPF_MAP_TYPE_PROG_ARRAY
396  array等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_array, map)
397  type等于 'Ownership' of prog array is claimed by the first program that * is going to use this map or by the first program which FD is * stored in the map to make sure that all callers and callees have * the same prog type and JITed flag.
398  jited等于jited
401  seq_printf(m, "map_type:\t%u\nkey_size:\t%u\nvalue_size:\t%u\nmax_entries:\t%u\nmap_flags:\t%#x\nmemlock:\t%llu\nmap_id:\t%u\nfrozen:\t%u\n", map_type, key_size, value_size, max_entries, map_flags, pages * 1ULL << PAGE_SHIFT determines the page size , id, READ_ONCE( write-once; write-protected by freeze_mutex ))
418  如果type
419  seq_printf(m, "owner_prog_type:\t%u\n", type)
420  seq_printf(m, "owner_jited:\t%u\n", jited)