Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:le_open_name - open file and return file pointer*@name: struct filename containing path to open*@flags: open flags as per the open(2) second argument*@mode: mode for the new file if O_CREAT is set, else ignored* This is the helper to open a file from

Proto:struct file *file_open_name(struct filename *name, int flags, umode_t mode)

Type:struct file

Parameter:

TypeParameterName
struct filename *name
intflags
umode_tmode
1043  err = build_open_flags(flags, mode, & op)
1044  Return If err Then ERR_PTR(err) Else do_filp_open(Special value used to indicateopenat should use the currentworking directory. , name, & op)
Caller
NameDescribe
SYSCALL_DEFINE2
filp_openlp_open - open file and return file pointer*@filename: path to open*@flags: open flags as per the open(2) second argument*@mode: mode for the new file if O_CREAT is set, else ignored* This is the helper to open a file from kernelspace if you really