apply_mips_fdt_fixups(9)
β¨ apply_mips_fdt_fixups(9) β¨
okay so bestie, welcome to the kernel API manual for apply_mips_fdt_fixups β yes it's a real function name and yes it's a mouthful, but honestly? it's giving "tiny utility that does one thing well" and I respect it π
This page lives in the Kernel API Manual, section 9. Let's get into it π«Ά
πΈ NAME πΈ
apply_mips_fdt_fixups β apply fixups to an FDT blob β¨
π¦ SYNOPSIS π¦
int apply_mips_fdt_fixups (void *fdt_out , size_t fdt_out_size , const
void *fdt_in , const struct mips_fdt_fixup *fixups );
literally one function, four arguments, no drama π
π ARGUMENTS π
fdt_outβ the buffer where the fixed-up FDT gets placed πfdt_out_sizeβ the size of thatfdt_outbuffer, so nobody writes off the end (we love a size parameter, no cap)fdt_inβ the FDT blob itself, the raw material π¦fixupsβ pointer to an array of fixups that need to be applied, aka the to-do list π
π₯ DESCRIPTION π₯
So here's the whole vibe: it loops through the array of fixups that fixups points to, and it calls the apply function on each one π
It keeps going until one of two things happens:
- one of those apply functions returns an error π β then we stop
- we reach the end of the list β and the end is marked by an entry whose
applyfield isNULLπ
That's it. That's the whole function. Simple, iconic, does exactly what it says β¨
heads up bestie: thatNULLapplyfield is the actual end-of-list marker, so don't go forgetting it, iykyk π«Ά
π RETURN π
zero on success π β otherwise -errno π
β SEE ALSO β
- Kernel file
./arch/mips/include/asm/machine.h mips_machine_is_compatible(9)struct mips_fdt_fixup(9)
and that's the page, bestie π§ mwah π this came to you courtesy of the source path ./arch/mips/include/asm, dated October 2026, and it's literally gonna live in your brain rent free now π
π¦ 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