Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_mkmap

Proto:static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
umode_tmode
void *arg
331  map = arg
333  Return bpf_mkobj_ops(dentry, mode, arg, & bpf_map_iops, bpf_map_support_seq_show(map) ? & pffs_map_fops should only implement the basic* read operation for a BPF map. The purpose is to* provide a simple user intuitive way to do* "cat bpffs/pathto/a-pinned-map".* Other operations (e.g. write, lookup...) should be realized by : & bpffs_obj_fops)