Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ksys_read

Proto:ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
unsigned intfd
char __user *buf
size_tcount
578  f = fdget_pos(fd)
579  ret = -EBADF
581  If file Then
582  ppos = le_ppos returns &file->f_pos or NULL if file is stream
583  If ppos Then
584  pos = ppos
585  ppos = pos
587  ret = vfs_read(file, buf, count, ppos)
588  If ret >= 0 && ppos Then f_pos = pos
590  fdput_pos(f)
592  Return ret
Caller
NameDescribe
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