set_satp_mode_from_fdt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… set_satp_mode_from_fdt β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so picture this: it's a set_satp_mode_from_fdt(9) moment and you're holding a device tree blob wondering what SATP mode the MMU is serving. slay, this page has you. ✨


✨ NAME ✨

set_satp_mode_from_fdt β€” literally figures out the SATP mode based on the MMU type chillin' in the fdt πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 set_satp_mode_from_fdt (uintptr_t dtb_pa );

that's the whole vibe. one arg, one u64 back. no cap. 🫢


🌸 ARGUMENTS 🌸

  • dtb_pa β€” the physical address of the device tree blob, aka where the fdt is living. give it the address and it's good to go πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does it actually do? it returns the SATP mode that corresponds to the MMU type of the first enabled CPU ✨

and if there's, like, no enabled CPU to speak of? it returns 0 instead. periodt. πŸ’…

ngl that's the entire function. short, sweet, main character energy. no surprises, no hidden lore. 🧚

πŸ”₯ SEE ALSO πŸ”₯

all of these are lowkey besties with this function, go say hi πŸ’œ


and that's the page!! 🌈 it lives in ./arch/riscv/kernel/pi, dated October 2026, and yes the manual name is set_satp_mode_from_fdt(9) in case you forgot already 😭 mwah, go read a device tree bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from