函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-lib.c Create Date:2022-07-27 18:42:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__blkdev_issue_zeroout - generate number of zero filed write bios*@bdev: blockdev to issue*@sector: start sector*@nr_sects: number of sectors to write*@gfp_mask: memory allocation flags (for bio_alloc)*@biop: pointer to anchor bio*@flags: controls

函数原型:int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
sector_tsector
sector_tnr_sects
gfp_tgfp_mask
struct bio **biop
unsignedflags
331  bs_mask等于bdev_logical_block_size(bdev)右移9位的值减1
332  如果sector按位或nr_sects的值按位与bs_mask则返回:负EINVAL
335  ret等于__blkdev_issue_write_zeroes(bdev, sector, nr_sects, gfp_mask, biop, flags)
337  如果ret不等于负EOPNOTSUPPflags按位与don't write explicit zeroes 则返回:ret
340  返回:__blkdev_issue_zero_pages(bdev, sector, nr_sects, gfp_mask, biop)