rtas_config_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rtas_config_addr(9) β€” Kernel API Manual

okay bestie, welcome to the rtas_config_addr page ✨ this is a kernel API manual entry, and honestly? she's short, she's sweet, and she does exactly one thing. let's get into it πŸŽ€


🌸 NAME 🌸

rtas_config_addr β€” format a busno, devfn and reg for RTAS. literally that's her whole job πŸ’–


✨ SYNOPSIS ✨

u32 rtas_config_addr (int busno , int devfn , int reg );

so you hand her three ints and she gives you back a u32. cute, clean, no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • busno β€” the bus number. that's it, that's the whole argument 🚌
  • devfn β€” the device and function number, as encoded by PCI_DEVFN. yes, as encoded by PCI_DEVFN β€” don't come in here with your own handmade encoding, she will notice πŸ™ˆ
  • reg β€” the register number. the third and final int, we love a trio πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she takes the busno, the devfn and the register number you gave her and encodes them ~exactly the way~ they need to be encoded for RTAS calls that take a "config_addr" parameter. that's the whole vibe check: if an RTAS call wants a "config_addr", this is the girl who makes one for you πŸ’…

and if you want the receipts on why it's encoded like that, go read PAPR requirement 7.3.4-1 β€” the original text literally points you there for more info, so like… go read it, bestie πŸ“–


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./arch/powerpc/include/asm/rtas.h β€” go look at the header if you're nosy (affectionate) πŸ‘€

and that's the whole page, bestie 🫢 stay iconic, encode responsibly, and remember: rtas_config_addr(9) came to you from the ./arch/powerpc/include/asm corner of the kernel, dated October 2026 β€” mwah, see you in the next manpage πŸ’‹πŸŒΈβœ¨

πŸ“¦ where this page comes from