函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_mkobj_ops

函数原型:static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, const struct inode_operations *iops, const struct file_operations *fops)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
umode_tmode
void *raw
const struct inode_operations *iops
const struct file_operations *fops
310  dir等于 Where the name belongs to - NULL is * negative
311  inode等于bpf_get_inode(i_sb, dir, mode)
312  如果是错误则返回:错误
315  i_op等于iops
316  rmer ->i_op->default_file_ops 等于fops
317  s or device private pointer 等于raw
319  bpf_dentry_finalize(dentry, inode, dir)
320  返回:0
调用者
名称描述
bpf_mkprog
bpf_mkmap