fdt_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to fdt_string(9) β€” the manual page for fdt_string. It's literally the function that retrieves a pointer to a single string from the strings block of a device tree. tiny function, very demure πŸ’….

πŸ“œ SYNOPSIS πŸ“œ

const char * fdt_string (const void *fdt , int stroffset );

🧾 ARGUMENTS 🧾

  • fdt β€” pointer to the device tree blob. that's the blob, bestie.
  • stroffset β€” offset of the string within the strings block (native endian). native endian, no cap.

πŸ’– DESCRIPTION πŸ’–

So fdt_string retrieves a pointer to a single string from the strings block of the device tree blob at fdt. That's the whole vibe: you point it at the blob and the offset, and it gives you a pointer to one string in the strings block. slay ✨.

πŸ” RETURN πŸ”

On success, you get a pointer to the string. If stroffset is out of bounds, or doesn't point to a valid string, you get NULL. that's the return contract, periodt πŸ’œ.

πŸ‘― SEE ALSO πŸ‘―

The sourcey home base is the Kernel file ./scripts/dtc/libfdt/libfdt.h, and here's the whole libfdt group chat (iykyk):

xoxo, your fave kernel bestie πŸ’– β€” from ./scripts/dtc/libfdt, October 2026 πŸŽ€

πŸ“¦ where this page comes from