函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_read_file_from_fd

函数原型:int kernel_read_file_from_fd(int fd, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id)

返回类型:int

参数:

类型参数名称
intfd
void **buf
loff_t *size
loff_tmax_size
enum kernel_read_file_idid
987  f等于fdget(fd)
988  ret等于负EBADF
990  如果非file则转到:out
993  ret等于kernel_read_file(file, buf, size, max_size, id)
994  out :
995  fdput(f)
996  返回:ret
调用者
名称描述
kimage_file_prepare_segmentsIn file mode list of segments is prepared by kernel. Copy relevant* data from user space, do error checking, prepare segment list
SYSCALL_DEFINE3