函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__dax_zero_page_range

函数原型:int __dax_zero_page_range(struct block_device *bdev, struct dax_device *dax_dev, sector_t sector, unsigned int offset, unsigned int size)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
struct dax_device *dax_dev
sector_tsector
unsigned intoffset
unsigned intsize
1064  如果dax_range_is_aligned(bdev, offset, size)则
1065  start_sector等于sectoroffset右移9位的值
1067  返回:blkdev_issue_zeroout(bdev, start_sector, size >> 9, GFP_NOFS, 0)
1069  否则
1074  rc等于bdev_dax_pgoff(bdev, sector, PAGE_SIZE, & pgoff)
1075  如果rc则返回:rc
1078  id等于dax_read_lock()
1079  rc等于dax_direct_access(dax_dev, pgoff, 1, & kaddr, NULL)
1080  如果rc小于0则
1082  返回:rc
1084  memset(kaddr + offset, 0, size)
1085  dax_flush(dax_dev, kaddr + offset, size)
1086  dax_read_unlock(id)
1088  返回:0
调用者
名称描述
iomap_dax_zero