doc_setup_writeaddr_sector(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… doc_setup_writeaddr_sector β€” the Kernel API Manual tea, section 9

okay so bestie, welcome to doc_setup_writeaddr_sector(9) ✨ this is the little kernel helper that sets up the blocks/page/ofs address for one plane β€” and yes, that's literally what the NAME says, no cap πŸŽ€


🌸 NAME 🌸

doc_setup_writeaddr_sector β€” setup blocks/page/ofs address for one plane πŸ¦‹


✨ SYNOPSIS ✨

void doc_setup_writeaddr_sector (struct docg3 *docg3 , int sector , int
ofs );

like… it returns void, so don't go looking for a return value, she's not giving you one πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • docg3 β€” the device 🫢 this is the whole vibe, the actual struct docg3 * you're working on
  • sector β€” the sector 🌈 yes. that's it. that's the sector.
  • ofs β€” the offset in the page, between 0 and (512 + 16 + 512) ⭐ note the range, bestie, it's literally spelled out for you: zero up to 512 + 16 + 512

πŸ‘‘ SEE ALSO πŸ‘‘

so this is the part where the whole friend group shows up 😭 and by friend group I mean the Kernel file ./drivers/mtd/devices/docg3.c plus every single one of these:

like, that's the whole roster πŸ”₯ no one got left out, iykyk πŸ’€


and that's the page, periodt 🧚

cute little sign-off: this one lives under ./drivers/mtd/devices, and the version/date stamp on it says October 2026 β€” so yeah, from the future, main character energy fr fr πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from