函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_read_file_from_path

函数原型:int kernel_read_file_from_path(const char *path, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id)

返回类型:int

参数:

类型参数名称
const char *path
void **buf
loff_t *size
loff_tmax_size
enum kernel_read_file_idid
971  如果非path或非path则返回:负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  如果是错误则返回:错误
978  ret等于kernel_read_file(file, buf, size, max_size, id)
979  fput(file)
980  返回:ret
调用者
名称描述
ima_read_policy