pdc_stable_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ pdc_stable_write(9) β€” the pdc_stable_write page, bestie edition πŸŽ€

okay so real talk: this is a page from the Kernel API Manual, and it's about pdc_stable_write β€” like, the function. it's a whole vibe, we're writing bytes into Stable Storage, let's get into it ✨


✨ NAME ✨

pdc_stable_write β€” Write data to Stable Storage. that's it, that's the whole thing, and honestly? iconic. πŸ’…


🌸 SYNOPSIS 🌸

int pdc_stable_write (unsigned long staddr , void *memaddr , unsigned long count );

three args, returns an int, we love a clean signature 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • staddr β€” the Stable Storage address you're accessing. this is the destination, the moment, the main character πŸ’«
  • memaddr β€” the memory address where the Stable Storage data shall be read from. like, yes, bestie, it's called write but this is the address we're pulling the bytes out of β€” that's just how the call works, iykyk πŸ™ˆ
  • count β€” number of bytes to transfer. and listen, count is multiple of 4. not "usually", not "preferably" β€” multiple of 4. periodt. πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• β€” this PDC call reads count bytes from the supplied memaddr address, and copies count bytes to the Stable Storage address staddr.

yes, both things: reads count, copies count. that's the whole flow, no cap. 🧚

and the guardrail πŸ‘‡

the call will fail if staddr+count > PDC_STABLE size. so if your range runs past the end of Stable Storage, it's giving error, not giving data. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

buckle up bestie, this list is LONG and it ate πŸ“

Kernel file ./arch/parisc/kernel/firmware.c

like I said. a LOT. go read some of them, they're all valid, slay 🌈


and that's the page!! πŸ¦‹ this one lives in ./arch/parisc/kernel and the version/date stamp is October 2026 β€” so, yeah, mark your calendar, mwah πŸ’–βœ¨πŸ’…

πŸ“¦ where this page comes from