函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_truncate_page

函数原型:int iomap_truncate_page(struct inode *inode, loff_t pos, bool *did_zero, const struct iomap_ops *ops)

返回类型:int

参数:

类型参数名称
struct inode *inode
loff_tpos
bool *did_zero
const struct iomap_ops *ops
1044  blocksize等于i_blocksize(inode)
1045  off等于pos按位与blocksize减1
1048  如果非off则返回:0
1050  返回:iomap_zero_range(inode, pos, blocksize - off, did_zero, ops)