Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_mkobj_ops

Proto:static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, const struct inode_operations *iops, const struct file_operations *fops)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(inode) Then Return PTR_ERR(inode)
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  Return 0
Caller
NameDescribe
bpf_mkprog
bpf_mkmap