函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_read

函数原型:ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
void *buf
size_tcount
loff_t *pos
437  old_fs等于获取当前进程地址空间上限()
438  set_fs(KERNEL_DS)
440  result等于vfs_read(file, (void__user * )buf, count, pos)
441  设置寄存器值(fs)
442  返回:result
调用者
名称描述
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
do_mmap_privateset up a private mapping or an anonymous shared mapping