函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_zero_range_actor

函数原型:static loff_t iomap_zero_range_actor(struct inode *inode, loff_t pos, loff_t count, void *data, struct iomap *iomap, struct iomap *srcmap)

返回类型:loff_t

参数:

类型参数名称
struct inode *inode
loff_tpos
loff_tcount
void *data
struct iomap *iomap
struct iomap *srcmap
988  did_zero等于data
989  written等于0
993  如果 type of mapping 恒等于 blocks allocated, need allocation type of mapping 恒等于locks allocated at @addr in unwritten state 则返回:count
996  循环
999  offset等于offset_in_page(pos)
1000  bytes等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, count)
1002  如果IS_DAX(inode)则status等于iomap_dax_zero(pos, offset, bytes, iomap)
1004  否则status等于iomap_zero(inode, pos, offset, bytes, iomap, srcmap)
1007  如果status小于0则返回:status
1010  pos加等于bytes
1011  count减等于bytes
1012  written加等于bytes
1013  如果did_zero则 * did_zero = true
1015 count大于0循环
1017  返回:written