函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_seek_hole_actor

函数原型:static loff_t iomap_seek_hole_actor(struct inode *inode, loff_t offset, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)

返回类型:loff_t

参数:

类型参数名称
struct inode *inode
loff_toffset
loff_tlength
void *data
struct iomap *iomap
struct iomap *srcmap
125  : type of mapping 恒等于locks allocated at @addr in unwritten state
126  offset等于Seek for SEEK_DATA / SEEK_HOLE in the page cache.* Within unwritten extents, the page cache determines which parts are holes* and which are data: uptodate buffer heads count as data; everything else* counts as a hole.
128  如果offset小于0则返回:length
131  : type of mapping 恒等于 blocks allocated, need allocation
132  data等于offset
133  返回:0
134  默认
135  返回:length