bio_await(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bio_await(9) β€” Kernel API Manual ✨


🌸 NAME 🌸

bio_await β€” call a function on a bio, and wait until it completes. That's the whole plot, no cap. πŸ’…

✨ SYNOPSIS ✨

void bio_await (struct bio *bio , void *priv , void (*submit)(struct bio
*bio, void *priv) );

πŸŽ€ ARGUMENTS πŸŽ€

  • bio β€” the bio which describes the I/O. Main character energy.
  • priv β€” private data passed to submit.
  • submit β€” function called to submit the bio.

πŸ’… DESCRIPTION πŸ’…

Okay so here's the vibe: bio_await waits for the bio as well as any bio chained off it after executing the passed-in callback submit. The wait for the bio is set up before calling submit to ensure that the completion is captured β€” yes, it's giving "don't miss the moment." If submit is NULL, submit_bio is used instead to submit the bio.

⚠️ NOTE ⚠️

Heads up bestie: this overrides the bi_private and bi_end_io fields in the bio. Like, it's literally taking over those fields, so don't act surprised. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./block/bio.c is the home base, and the whole squad is:

πŸ’– source/version: ./block; date: October 2026; page: bio_await(9) β€” that's the cute sign-off, bestie! πŸ’–

πŸ“¦ where this page comes from