overlay_adju...ode_phandles(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… overlay_adjust_node_phandles(9) β€” from the Kernel API Manual, bestie ✨

okay so we're diving into the Kernel API Manual today and honestly? this one is a lil' niche but it slaps once you get it. it's a C function from the device-tree overlay world, and no cap, it's doing that effortless background-character work that keeps everything from falling apart. πŸŽ€


✨ NAME ✨

overlay_adjust_node_phandles β€” literally just offsets the phandles of a node. that's it. that's the vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int overlay_adjust_node_phandles (void *fdto , int node , uint32_t delta
);

three args, one int coming back at you. copy it exactly like that, spaces and all β€” the manpage said so, so we say so. 🫢


🌸 ARGUMENTS 🌸

  • fdto β€” the device tree overlay blob. yes, that blob. the whole overlay situation lives in here 🧚
  • node β€” the offset of the node we wanna adjust. like, which node are we messing with, bestie
  • delta β€” the offset to shift the phandles by. the amount. the shimmy. the ✨delta✨

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: overlay_adjust_node_phandles adds a constant to all the phandles of a given node. every single one. it's giving "group chat, everyone gets the same message." πŸ’€

and it's mainly used as part of the overlay application process β€” you know, when we want to update all the overlay phandles so they don't conflict with the overlays of the base device tree. so it's lowkey the peacekeeper. highkey iconic. πŸ‘‘


🌈 RETURN 🌈

  • 0 on success πŸŽ‰
  • a negative error code on failure 😭

that's the whole contract. no surprises, no drama (unless it's negative, then there's a lil' drama).


πŸ”₯ SEE ALSO πŸ”₯

that's a whole friend group of functions right there. they all show up together, they all know each other, they all text back. πŸ«ΆπŸ’œ


⭐ friendly reminder: the args are typed void *fdto, int node, uint32_t delta and the return is int. keep those exact, don't get creative with the types, that's not the assignment bestie.

and that's the whole page, no notes! πŸ’– straight from ./scripts/dtc/libfdt, dated October 2026, in the Kernel API Manual β€” the section is literally named ./scripts/dtc/libfdt and the date is literally October 2026, so yeah, that's the whole sign-off. mwah. πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from