Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:00:58
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:open_with_fake_path

Proto:struct file *open_with_fake_path(const struct path *path, int flags, struct inode *inode, const struct cred *cred)

Type:struct file

Parameter:

TypeParameterName
const struct path *path
intflags
struct inode *inode
const struct cred *cred
943  f = alloc_empty_file_noaccount(flags, cred)
944  If Not IS_ERR(f) Then
947  f_path = path
948  error = do_dentry_open(f, inode, NULL)
949  If error Then
950  fput(f)
951  f = ERR_PTR(error)
954  Return f