函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called when an inode is about to be open.* We use this to disallow opening large files on 32bit systems if* the caller didn't specify O_LARGEFILE. On 64bit systems we force* on this flag in sys_open.

函数原型:int generic_file_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
1226  如果非f_flags按位与O_LARGEFILE的值且NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they 大于MAX_NON_LFS则返回:负EOVERFLOW
1228  返回:0
调用者
名称描述
dquot_file_openGeneric helper for ->open on filesystems supporting disk quotas.