blkdev_issue_zeroout(9)
β¨ blkdev_issue_zeroout(9) β¨
okay so bestie, welcome to the Kernel API Manual page for blkdev_issue_zeroout β like, this is the one that literally zero-fills a block range for you. no cap, it's a whole vibe. π
π NAME π
blkdev_issue_zeroout β zero-fill a block range π«Ά
πΈ SYNOPSIS πΈ
int blkdev_issue_zeroout (struct block_device *bdev , sector_t sector ,
sector_t nr_sects , gfp_t gfp_mask , unsigned flags );
π ARGUMENTS π
bdevβ the blockdev you're writing to, your main character device π¦sectorβ the start sector, like where the whole thing begins β¨nr_sectsβ number of sectors to write (the how-much energy) π₯gfp_maskβ memory allocation flags (forbio_alloc), iykyk π§flagsβ controls detailed behavior, the little switches that change everything π
π¦ DESCRIPTION π¦
Zero-fill a block range, bestie! You can do it either by using hardware offload or by explicitly writing zeroes to the device β both paths are valid, it's giving flexible. π
ngl, if you wanna know the valid values forflags, go check__blkdev_issue_zerooutβ it's literally where the tea is. β
π SEE ALSO π
- Kernel file
./block/blk-lib.c blkdev_issue_discard(9)__blkdev_issue_zeroout(9)
and that's the whole page, periodt π
π β this little gem lives in ./block and the source/version + date sitch is October 2026, so yeah, bookmark it and slay your block zeroing bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms