Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-28 14:12:17
Last Modify:2020-03-17 21:13:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_readahead

Proto:ssize_t ksys_readahead(int fd, loff_t offset, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
intfd
loff_toffset
size_tcount
583  ret = -EBADF
584  f = fdget(fd)
585  If Not file || Not (f_mode & le is open for reading ) Then Go to out
593  ret = -EINVAL
594  If Not f_mapping || Not a_ops || Not S_ISREG(i_mode) Then Go to out
598  ret = vfs_fadvise(file, offset, count, Will need these pages. )
599  out :
600  fdput(f)
601  Return ret
Caller
NameDescribe
SYSCALL_DEFINE3