plat_get_fdt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 plat_get_fdt(9) β€” a Kernel API Manual moment 🌸

okay so bestie, you're reading plat_get_fdt(9) from the Kernel API Manual and honestly? it's a little guy with a big job. let's get into it πŸ’…


✨ NAME ✨

plat_get_fdt β€” hand you a pointer to the platform's device tree blob, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void * plat_get_fdt (void );

πŸ’– ARGUMENTS πŸ’–

  • void β€” literally no arguments. nothing. zero. she takes nothing and gives everything 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so this function is the platform-independent API for getting a pointer to the flattened device tree blob. iconic behaviour fr fr ✨

here's the vibe: the interface between the bootloader and the kernel is not consistent across platforms β€” it's giving chaos, honestly 😭 β€” so it's necessary to provide this API so that common startup code can locate the FDT. one function to find them all, basically 🌈

and who's using it? the KASLR code, that's who β€” it calls this to get command line arguments and the random seed out of the device tree. so any platform wishing to use KASLR should provide this API and select SYS_SUPPORTS_RELOCATABLE. that's the deal, bestie, both parts, no skipping πŸ’œ


πŸ”₯ RETURN πŸ”₯

Pointer to the flattened device tree blob. that's it, that's the whole return value, she's simple and she slays ⭐


🧚 SEE ALSO 🧚

go read those next, iykyk πŸ“š


πŸ’€ tiny reminder before you go: the bootloader/kernel interface is genuinely inconsistent across platforms, so don't go assuming it's uniform β€” that's literally why this API exists. be normal about it πŸ™ˆ

mwah, that's the whole page! sourced from ./arch/mips/include/asm, dated October 2026, and still serving plat_get_fdt(9) realness. go forth and locate that FDT, bestie πŸ’–πŸŽ€πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from