Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xed_size_llseek - llseek implementation for fixed-sized devices*@file: file structure to seek on*@offset: file offset to seek to*@whence: type of seek*@size: size of the file

Proto:loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size)

Type:loff_t

Parameter:

TypeParameterName
struct file *file
loff_toffset
intwhence
loff_tsize
165  Case whence == seek relative to beginning of file
165  Case whence == seek relative to current file position
165  Case whence == seek relative to end of file
166  Return generic_file_llseek_size - generic llseek implementation for regular files*@file: file structure to seek on*@offset: file offset to seek to*@whence: type of seek*@size: max size of this file in file system*@eof: offset used for SEEK_END position* This is
168  Default
169  Return -EINVAL
Caller
NameDescribe
block_llseekprivate llseek:* for a block special file file_inode(file)->i_size is zero* so we compute the size by hand (just as in block_read/write above)