函数逻辑报告

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

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

函数原型:loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size)

返回类型:loff_t

参数:

类型参数名称
struct file *file
loff_toffset
intwhence
loff_tsize
165  :whence恒等于seek relative to beginning of file
165  :whence恒等于seek relative to current file position
165  :whence恒等于seek relative to end of file
166  返回: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  默认
169  返回:负EINVAL
调用者
名称描述
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)