函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:loff_t generic_file_llseek_size(struct file *file, loff_t offset, int whence, loff_t maxsize, loff_t eof)

返回类型:loff_t

参数:

类型参数名称
struct file *file
loff_toffset
intwhence
loff_tmaxsize
loff_teof
90  :whence恒等于seek relative to end of file
91  offset加等于eof
92  退出
93  :whence恒等于seek relative to current file position
100  如果offset恒等于0则返回:f_pos
107  加自旋锁
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  自旋锁解锁
110  返回:offset
111  :whence恒等于seek to the next data
116  如果offset大于等于eof则返回:负ENXIO
118  退出
119  :whence恒等于seek to the next hole
124  如果offset大于等于eof则返回:负ENXIO
126  offset等于eof
127  退出
130  返回: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
调用者
名称描述
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