函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-29 10:31:00
Last Modify:2020-03-18 10:16:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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()

函数原型:int finish_open(struct file *file, struct dentry *dentry, int (*open)(struct inode *, struct file *))

返回类型:int

参数:

类型参数名称
struct file *file
struct dentry *dentry
int (*open
871  BUG_ON(f_mode & FMODE_OPENED)
873  dentry等于dentry
874  返回: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)
调用者
名称描述
do_tmpfile