Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_mkdir

Proto:static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
umode_tmode
137  inode = bpf_get_inode(i_sb, dir, mode | S_IFDIR)
138  If IS_ERR(inode) Then Return PTR_ERR(inode)
141  i_op = bpf_dir_iops
142  rmer ->i_op->default_file_ops = simple_dir_operations
144  inc_nlink(inode)
145  inc_nlink(dir)
147  bpf_dentry_finalize(dentry, inode, dir)
148  Return 0