rtas_config_addr(9)
π 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 byPCI_DEVFN. yes, as encoded byPCI_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms