函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static loff_t block_llseek(struct file *file, loff_t offset, int whence)

返回类型:loff_t

参数:

类型参数名称
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  返回:retval