函数逻辑报告

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

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

函数原型:loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize)

返回类型:loff_t

参数:

类型参数名称
struct file *file
loff_toffset
loff_tmaxsize
56  如果offset小于0且非unsigned_offsets(file)则返回:负EINVAL
58  如果offset大于maxsize则返回:负EINVAL
61  如果offset不等于f_pos
62  f_pos等于offset
63  f_version等于0
65  返回:offset
调用者
名称描述
generic_file_llseek_sizegeneric_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