函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksys_lseek

函数原型:off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence)

返回类型:off_t

参数:

类型参数名称
unsigned intfd
off_toffset
unsigned intwhence
307  f等于fdget_pos(fd)
308  如果非file则返回:负EBADF
311  retval等于负EINVAL
312  如果whence小于等于SEEK_MAX
313  res等于vfs_llseek(file, offset, whence)
314  retval等于res
315  如果res不等于retvalretval等于负EOVERFLOW
318  fdput_pos(f)
319  返回:retval
调用者
名称描述
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