bio_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to bio_chain(9) from the Kernel API Manual ✨ this one is literally about chaining bio completions, and it’s giving β€œwait for your friend before you leave” energy πŸŽ€

🌸 NAME 🌸

bio_chain - chain bio completions

✨ SYNOPSIS ✨

void bio_chain (struct bio *bio , struct bio *parent );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bio β€” the target bio πŸ’…
  • parent β€” the parent bio of bio 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here’s the vibe: when bio completes, the caller won’t have a bi_end_io called for it. instead, parent’s bi_end_io won’t be called until both parent and bio have completed. and yes, the chained bio will also be freed when it completes 🧚

⚠️ bestie, important: the caller must not set bi_private or bi_end_io in bio. not the move. periodt πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./block/bio.c, plus these iconic references:


byeee bestie β€” this little page lives in ./block and is dated October 2026 πŸ«ΆπŸ’–

πŸ“¦ where this page comes from