函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:35:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_tmpfile

函数原型:static int do_tmpfile(struct nameidata *nd, unsigned flags, const struct open_flags *op, struct file *file)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(error)则返回:error
3424  error等于mnt_want_write(mnt)
3425  如果此条件成立可能性小(为编译器优化)(error)则转到:out
3427  child等于vfs_tmpfile(dentry, mode, open_flag)
3428  error等于错误
3429  如果是错误则转到:out2
3431  dput(dentry)
3432  dentry等于child
3433  audit_inode(name, child, 0)
3435  error等于may_open( & path, 0, open_flag)
3436  如果error则转到: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  返回:error
调用者
名称描述
path_openat