Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-lib.c Create Date:2022-07-28 17:07:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__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

Proto:int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)

Type:int

Parameter:

TypeParameterName
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  If (sector | nr_sects) & bs_mask Then Return -EINVAL
335  ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, gfp_mask, biop, flags)
337  If ret != -EOPNOTSUPP || flags & don't write explicit zeroes Then Return ret
340  Return __blkdev_issue_zero_pages(bdev, sector, nr_sects, gfp_mask, biop)