fdt_overlay_target_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ fdt_overlay_target_offset(9) β€” Kernel API Manual πŸ¦‹

okay bestie, welcome to the fdt_overlay_target_offset(9) page β€” manual name, check; kernel API energy, check. We're here to talk about grabbing a fragment's target offset, no cap. πŸ‘‘

✨ NAME ✨

fdt_overlay_target_offset β€” retrieves the offset of a fragment's target. literally the whole assignment. πŸ’…

πŸ’… SYNOPSIS πŸ’…

int fdt_overlay_target_offset (const void *fdt , const void *fdto , int
       fragment_offset , char const **pathp );

πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” Base device tree blob. the main tree, the base one, the one we're targeting. 🌳
  • fdto β€” Device tree overlay blob. the overlay bestie doing the targeting. πŸ¦‹
  • fragment_offset β€” node offset of the fragment in the overlay. yes, that exact fragment. πŸ“
  • pathp β€” pointer which receives the path of the target (or NULL). it gets the path β€” or it's NULL, your call. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

fdt_overlay_target_offset retrieves the target offset in the base device tree of a fragment, no matter how the actual targeting is done (through a phandle or a path). so like, whether the overlay is pointing at stuff via phandle or via a path, this function still gets you that target offset. iconic behavior, honestly. ✨

🌸 RETURN 🌸

  • the targeted node offset in the base device tree ⭐
  • Negative error code on error πŸ’€

🧚 SEE ALSO 🧚

Kernel file ./scripts/dtc/libfdt/libfdt.h β€” and the whole guest list:


xoxo bestie πŸ’– source/version: ./scripts/dtc/libfdt, dated October 2026, manual: fdt_overlay_target_offset(9). periodt. πŸ‘‘

πŸ“¦ where this page comes from