Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_create

Proto:int vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool want_excl)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
umode_tmode
boolwant_excl
2845  error = Check whether we can create an object with dentry child in directory* dir.* 1. We can't do it if child already exists (open has special treatment for* this case, but since we are inlined it's OK)* 2
2846  If error Then Return error
2849  If Not create Then Return -EACCES
2851  mode &= S_IALLUGO
2852  mode |= S_IFREG
2853  error = security_inode_create(dir, dentry, mode)
2854  If error Then Return error
2856  error = create(dir, dentry, mode, want_excl)
2857  If Not error Then snotify_create - 'name' was linked in
2859  Return error
Caller
NameDescribe
do_mknodat