Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_map_show_fdinfo

Proto:static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct file *filp
391  map = needed for tty driver, and maybe others
393  type = 0 , jited = 0
395  If map_type == BPF_MAP_TYPE_PROG_ARRAY Then
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  If type Then
419  seq_printf(m, "owner_prog_type:\t%u\n", type)
420  seq_printf(m, "owner_jited:\t%u\n", jited)