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

Proto:loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize)

Type:loff_t

Parameter:

TypeParameterName
struct file *file
loff_toffset
loff_tmaxsize
56  If offset < 0 && Not unsigned_offsets(file) Then Return -EINVAL
58  If offset > maxsize Then Return -EINVAL
61  If offset != f_pos Then
62  f_pos = offset
63  f_version = 0
65  Return offset
Caller
NameDescribe
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