Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kernel_read

Proto:ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
void *buf
size_tcount
loff_t *pos
437  old_fs = get_fs()
438  set_fs(KERNEL_DS)
440  result = vfs_read(file, (void__user * )buf, count, pos)
441  set_fs(old_fs)
442  Return result
Caller
NameDescribe
kernel_read_file
prepare_binprmFill the binprm structure from the inode.* Check permissions, then read the first BINPRM_BUF_SIZE bytes* This may be called multiple times for binary chains (scripts for example).
load_aout_library
load_misc_binaryhe loader itself
elf_read
elf_fdpic_fetch_phdrsad the program headers table into memory
load_elf_fdpic_binaryload an fdpic binary into various bits of memory