Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ksys_lseek

Proto:off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence)

Type:off_t

Parameter:

TypeParameterName
unsigned intfd
off_toffset
unsigned intwhence
307  f = fdget_pos(fd)
308  If Not file Then Return -EBADF
311  retval = -EINVAL
312  If whence <= SEEK_MAX Then
313  res = vfs_llseek(file, offset, whence)
314  retval = res
315  If res != retval Then retval = -EOVERFLOW
318  fdput_pos(f)
319  Return retval
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
SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE3