fdt_get_phandle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fdt_get_phandle(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for fdt_get_phandle β€” it's lowkey a tiny little function with main character energy, and we are gonna get you comfy with it. ✨


πŸŽ€ NAME πŸŽ€

fdt_get_phandle β€” retrieve the phandle of a given node πŸ’…


🌸 SYNOPSIS 🌸

uint32_t fdt_get_phandle (const void *fdt , int nodeoffset );

πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” pointer to the device tree blob 🫢
  • nodeoffset β€” structure block offset of the node πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so fdt_get_phandle retrieves the phandle of the device tree node at structure block offset nodeoffset. That's literally the whole mission bestie β€” no extra plot twists, no side quests, just the phandle retrieval situation. ✨


πŸ”₯ RETURN πŸ”₯

here's the vibe check on what comes back:

  • On success, you get the phandle of the node at nodeoffset β€” and success here means != 0 and != -1. πŸ’–
  • You get 0 if the node has no phandle, or another error occurs. 😭

🌈 SEE ALSO 🌈

bestie, the fdt family reunion is huge β€” every single one of these is invited:


mwah πŸ’‹ β€” source/version: ./scripts/dtc/libfdt; date: October 2026. byeeee, go be iconic with your device tree blobs πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from