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_fd

Proto:int kernel_read_file_from_fd(int fd, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id)

Type:int

Parameter:

TypeParameterName
intfd
void **buf
loff_t *size
loff_tmax_size
enum kernel_read_file_idid
987  f = fdget(fd)
988  ret = -EBADF
990  If Not file Then Go to out
993  ret = kernel_read_file(file, buf, size, max_size, id)
994  out :
995  fdput(f)
996  Return ret
Caller
NameDescribe
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