bdev_count_inflight(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:


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