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:do_tmpfile

Proto:static int do_tmpfile(struct nameidata *nd, unsigned flags, const struct open_flags *op, struct file *file)

Type:int

Parameter:

TypeParameterName
struct nameidata *nd
unsignedflags
const struct open_flags *op
struct file *file
3421  error = Returns 0 and nd will be valid on success; Retuns error, otherwise.
3422  If Value for the false possibility is greater at compile time(error) Then Return error
3424  error = mnt_want_write(mnt)
3425  If Value for the false possibility is greater at compile time(error) Then Go to out
3427  child = vfs_tmpfile(dentry, mode, open_flag)
3428  error = PTR_ERR(child)
3429  If IS_ERR(child) Then Go to out2
3431  dput(dentry)
3432  dentry = child
3433  audit_inode(name, child, 0)
3435  error = may_open( & path, 0, open_flag)
3436  If error Then Go to out2
3438  mnt = mnt
3439  error = sh_open - finish opening a file*@file: file pointer*@dentry: pointer to dentry*@open: open callback*@opened: state of open* This can be used to finish opening a file passed to i_op->atomic_open()
3440  out2 :
3441  mnt_drop_write(mnt)
3442  out :
3443  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
3444  Return error
Caller
NameDescribe
path_openat