函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_mkmap

函数原型:static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
umode_tmode
void *arg
331  map等于arg
333  返回: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)