Function report |
Source Code:block\blk-lib.c |
Create Date:2022-07-28 17:07:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lkdev_issue_zeroout - zero-fill a block range*@bdev: blockdev to write*@sector: start sector*@nr_sects: number of sectors to write*@gfp_mask: memory allocation flags (for bio_alloc)*@flags: controls detailed behavior* Description:* Zero-fill a block
Proto:int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct block_device * | bdev | |
sector_t | sector | |
sector_t | nr_sects | |
gfp_t | gfp_mask | |
unsigned | flags |
361 | ret = 0 |
365 | try_write_zeroes = Not Not bdev_write_zeroes_sectors(bdev) |
367 | bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1 |
371 | retry : |
372 | bio = NULL |
374 | If try_write_zeroes Then |
377 | Else if Not (flags & don't write explicit zeroes ) Then |
380 | Else |
382 | ret = -EOPNOTSUPP |
389 | If ret && try_write_zeroes Then |
390 | If Not (flags & don't write explicit zeroes ) Then |
391 | try_write_zeroes = false |
392 | Go to retry |
394 | If Not bdev_write_zeroes_sectors(bdev) Then |
401 | ret = -EOPNOTSUPP |
405 | Return ret |
Name | Describe |
---|---|
blk_ioctl_zeroout | |
blkdev_fallocate | |
__dax_zero_page_range |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |