函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksys_read

函数原型:ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
unsigned intfd
char __user *buf
size_tcount
578  f等于fdget_pos(fd)
579  ret等于负EBADF
581  如果file
582  ppos等于le_ppos returns &file->f_pos or NULL if file is stream
583  如果ppos
584  pos等于ppos
585  ppos等于pos
587  ret等于vfs_read(file, buf, count, ppos)
588  如果ret大于等于0且pposf_pos等于pos
590  fdput_pos(f)
592  返回:ret
调用者
名称描述
identify_ramdisk_imageThis routine tries to find a RAM disk image to load, and returns the* number of blocks to read for a non-compressed image, 0 if the image* is a compressed image, and -1 if an image with the right magic* numbers could not be found
rd_load_image
compr_fill
SYSCALL_DEFINE3