Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kernel_read_file_from_path

Proto:int kernel_read_file_from_path(const char *path, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id)

Type:int

Parameter:

TypeParameterName
const char *path
void **buf
loff_t *size
loff_tmax_size
enum kernel_read_file_idid
971  If Not path || Not path Then Return -EINVAL
974  file = lp_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
975  If IS_ERR(file) Then Return PTR_ERR(file)
978  ret = kernel_read_file(file, buf, size, max_size, id)
979  fput(file)
980  Return ret
Caller
NameDescribe
ima_read_policy