Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-28 20:14:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:private 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)

Proto:static loff_t block_llseek(struct file *file, loff_t offset, int whence)

Type:loff_t

Parameter:

TypeParameterName
struct file *file
loff_toffset
intwhence
651  bd_inode = bdev_file_inode(file)
654  inode_lock(bd_inode)
655  retval = 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
656  inode_unlock(bd_inode)
657  Return retval