trace_block_split(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_block_split(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual page for trace_block_split(9) β€” this is the group chat where we talk about splitting one bio struct into two bio structs. no cap, that's literally the whole vibe. πŸ¦‹


✨ NAME ✨

trace_block_split β€” split a single bio struct into two bio structs πŸ’«


🌸 SYNOPSIS 🌸

void trace_block_split (struct bio *bio , unsigned int new_sector );

that's it. that's the whole signature. iconic. πŸŽ€


🫢 ARGUMENTS 🫢

  • bio β€” the block operation that's getting split. it's the main character here, lowkey the one going through it 😭
  • new_sector β€” the starting sector for the new bio. like, where the freshly-made baby bio begins its life ✨

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: the bio request bio needs to be split into two bio requests. the way that this works is the newly created bio request starts at new_sector β€” that's its whole starting point, fr fr.

and why would anyone even do this, you ask? because sometimes hardware is dramatic and has limitations, bestie. like, an operation might be crossing device boundaries in a RAID system πŸ™ˆ and the hardware's just not gonna deal with that. so we split. and that's valid. the split may be required due to exactly that kind of hardware limitation, no more, no less. πŸ’…

⚠️ quick vibe check: this is a tracing hook β€” the split being described is about the operation crossing device boundaries in a RAID system and other hardware limits, so don't go inventing new reasons, iykyk.

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./include/trace/events/block.h and honestly the whole friend group:


okay that's the whole page, you ate that πŸ“ go forth and split ur bios responsibly, bestie πŸŒˆπŸ’–

β€” signed off with love from the <rainbow>./include/trace/events</rainbow> corner of the kernel tree, dated October 2026 πŸ§šβ€β™€οΈβ­ (that's the source and the date, so you know it's legit πŸ‘‘)

πŸ“¦ where this page comes from