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: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

Proto:loff_t generic_file_llseek_size(struct file *file, loff_t offset, int whence, loff_t maxsize, loff_t eof)

Type:loff_t

Parameter:

TypeParameterName
struct file *file
loff_toffset
intwhence
loff_tmaxsize
loff_teof
90  Case whence == seek relative to end of file
91  offset += eof
92  Break
93  Case whence == seek relative to current file position
100  If offset == 0 Then Return f_pos
107  spin_lock( & * Protects f_ep_links, f_flags. * Must not be taken from IRQ context.)
108  offset = vfs_setpos - update the file offset for lseek*@file: file structure in question*@offset: file offset to seek to*@maxsize: maximum file size* This is a low-level filesystem helper for updating the file offset to* the value specified by @offset if the given
109  spin_unlock( & * Protects f_ep_links, f_flags. * Must not be taken from IRQ context.)
110  Return offset
111  Case whence == seek to the next data
116  If offset >= eof Then Return -ENXIO
118  Break
119  Case whence == seek to the next hole
124  If offset >= eof Then Return -ENXIO
126  offset = eof
127  Break
130  Return vfs_setpos - update the file offset for lseek*@file: file structure in question*@offset: file offset to seek to*@maxsize: maximum file size* This is a low-level filesystem helper for updating the file offset to* the value specified by @offset if the given
Caller
NameDescribe
generic_file_llseekgeneric_file_llseek - generic llseek implementation for regular files*@file: file structure to seek on*@offset: file offset to seek to*@whence: type of seek* This is a generic implemenation of ->llseek useable for all normal local* filesystems
fixed_size_llseekxed_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
no_seek_end_llseek_seek_end_llseek - llseek implementation for fixed-sized devices*@file: file structure to seek on*@offset: file offset to seek to*@whence: type of seek
no_seek_end_llseek_size_seek_end_llseek_size - llseek implementation for fixed-sized devices*@file: file structure to seek on*@offset: file offset to seek to*@whence: type of seek*@size: maximal offset allowed
empty_dir_llseek