apply_mips_fdt_fixups(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 that fdt_out buffer, 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:

  1. one of those apply functions returns an error 😭 β€” then we stop
  2. we reach the end of the list β€” and the end is marked by an entry whose apply field is NULL πŸ‘‘

That's it. That's the whole function. Simple, iconic, does exactly what it says ✨

heads up bestie: that NULL apply field is the actual end-of-list marker, so don't go forgetting it, iykyk 🫢

🌈 RETURN 🌈

zero on success πŸŽ‰ β€” otherwise -errno πŸ’€

⭐ SEE ALSO ⭐


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