Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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()

Proto:int finish_open(struct file *file, struct dentry *dentry, int (*open)(struct inode *, struct file *))

Type:int

Parameter:

TypeParameterName
struct file *file
struct dentry *dentry
int (*open
871  BUG_ON(f_mode & FMODE_OPENED)
873  dentry = dentry
874  Return do_dentry_open(file, d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper, open)
Caller
NameDescribe
do_tmpfile