bdev_count_inflight(9)
πΈ NAME πΈ
okay so this is bdev_count_inflight(9) from the Kernel API Manual, and bestie it does exactly what it says on the tin: it gets the number of inflight IOs for a block device. π
β¨
π¦ SYNOPSIS π¦
unsigned int bdev_count_inflight (struct block_device *part );
π ARGUMENTS π
partβ the block device. that's it, that's the whole argument. π«Ά
β¨ DESCRIPTION β¨
Inflight here means started IO accounting, no cap. For a bio-based block device it's from bdev_start_io_acct, and for an rq-based block device it's from blk_account_io_start. literally the definition, iykyk. π
π SEE ALSO π
Kernel file ./block/genhd.c is out here linking the whole friend group:
__register_blkdev(9)add_disk_fwnode(9)device_add_disk(9)blk_mark_disk_dead(9)del_gendisk(9)invalidate_disk(9)disk_release(9)put_disk(9)set_disk_ro(9)
okay bye bestie π source/version is ./block, dated October 2026 β and that's the bdev_count_inflight(9) tea, periodt. πβ¨
π¦ 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