Scroll to navigation

__BLKDEV_ISSUE_ZEROO(9) Block Devices __BLKDEV_ISSUE_ZEROO(9)

NAME

__blkdev_issue_zeroout - generate number of zero filed write bios

SYNOPSIS

int __blkdev_issue_zeroout(struct block_device * bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio ** biop, bool discard);

ARGUMENTS

struct block_device * bdev

blockdev to issue

sector_t sector

start sector

sector_t nr_sects

number of sectors to write

gfp_t gfp_mask

memory allocation flags (for bio_alloc)

struct bio ** biop

pointer to anchor bio

bool discard

discard flag

DESCRIPTION

Generate and issue number of bios with zerofiled pages.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11