doc_read_seek(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… doc_read_seek(9) β€” like, the Kernel API Manual's cutest little seek function πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for doc_read_seek(9) ✨ this one's short and sweet and honestly kind of a vibe β€” it just points the flash at the right spot so you can read from it. let's get into it 🫢


✨ NAME ✨

doc_read_seek β€” sets both flash planes to the specified block and page, for reading πŸ“–πŸ’«

🌸 SYNOPSIS 🌸

int doc_read_seek (struct docg3 *docg3 , int block0 , int block1 , int
page , int wear , int ofs );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • docg3 β€” the device itself, the main character of this whole operation πŸ‘‘
  • block0 β€” the block index of the first plane 🧚
  • block1 β€” the block index of the second plane 🧚
  • page β€” which page you want, within the block πŸ“„
  • wear β€” if this is true, the read will happen on the 4 extra bytes of the wear area πŸŽ€
  • ofs β€” the offset in the page where the read starts πŸ“

πŸ”₯ DESCRIPTION πŸ”₯

So what it actually does: it programs the flash even and odd planes to that specific block and page you handed it. Both planes. At once. Iconic behaviour, no cap πŸ’…

Or, if you're feeling different today β€” it programs the flash to the wear area of the page you specified instead 🌸

That's it. That's the whole thing. It's giving "set the coordinates, then go" ⭐

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/mtd/devices/docg3.c β€” plus literally the entire extended friend group of doc functions, all of them, here we go 🫢:


aaaand that's the whole page bestie πŸ’– thanks for reading, mwah 🫢

signed off from ./drivers/mtd/devices, dated October 2026 β€” slay, periodt, go read some flash πŸ’…βœ¨

πŸ“¦ where this page comes from