fdt_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

fdt_create β€” bestie, this is the β€œbegin creation of a new fdt” moment. Like the opening scene of your fdt’s main character era. ✨ This is the fdt_create(9) page, and we’re keeping it cute.


🌸 SYNOPSIS 🌸

int fdt_create (void *buf , int bufsize );

πŸŽ€ ARGUMENTS πŸŽ€

  • buf β€” pointer to memory allocated where fdt will be created. πŸ’– You bring the memory, this function brings the fdt glow-up.
  • bufsize β€” size of the memory space at fdt. πŸ’… That’s how much room your new fdt gets.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so lowkey the whole vibe is simple: fdt_create is equivalent to fdt_create_with_flags with flags=0. Periodt. πŸ’œ

No hidden lore β€” just the zero-flags equivalent, exactly as stated. ✨


⭐ RETURN ⭐

  • 0 β€” on success, slay! ✨
  • -FDT_ERR_NOSPACE β€” bufsize is insufficient for a minimal fdt. Oop, there’s not enough room for even a minimal baby fdt 😭.
bestie, that’s the exact error case: bufsize is insufficient for a minimal fdt. No cap. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file source: ./scripts/dtc/libfdt/libfdt.h β€” and the whole iconic squad is below:


kisses from ./scripts/dtc/libfdt, dated October 2026 β€” this fdt_create(9) manual page is done, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from