set_satp_mode_from_fdt(9)
π 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 π₯
- the kernel file
./arch/riscv/kernel/pi/fdt_early.cβ go read it, iykyk π fdt_device_is_available(9)isa_string_contains(9)early_cpu_isa_ext_available(9)fdt_early_match_extension_isa(9)
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
- 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