Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_tmpfile

Proto:struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dentry
umode_tmode
intopen_flag
3378  struct dentry * child = NULL
3379  dir = Where the name belongs to - NULL is * negative
3384  error = de_permission - Check for access rights to a given inode*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)* Check for read/write/execute permissions on an inode
3385  If error Then Go to out_err
3387  error = -EOPNOTSUPP
3388  If Not tmpfile Then Go to out_err
3390  error = -ENOMEM
3391  child = allocate a dcache entry
3392  If Value for the false possibility is greater at compile time(!child) Then Go to out_err
3394  error = tmpfile(dir, child, mode)
3395  If error Then Go to out_err
3397  error = -ENOENT
3398  inode = Where the name belongs to - NULL is * negative
3399  If Value for the false possibility is greater at compile time(!inode) Then Go to out_err
3401  If Not (open_flag & O_EXCL) Then
3402  spin_lock( & _blocks, i_bytes, maybe i_size )
3403  Misc |= I_LINKABLE
3404  spin_unlock( & _blocks, i_bytes, maybe i_size )
3406  ima_post_create_tmpfile(inode)
3407  Return child
3409  out_err :
3410  dput(child)
3411  Return ERR_PTR(error)
Caller
NameDescribe
do_tmpfile