of_phandle_args_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_phandle_args_equal(9) πŸ’–

okay so welcome to the kernel API manual, bestie β€” this page lives in section 9 and it's called of_phandle_args_equal, and it's literally just a vibe check for two of_phandle_args structs. that's it. that's the whole gig. πŸ¦‹


✨ NAME ✨

of_phandle_args_equal β€” compare two of_phandle_args 🫢

🌸 SYNOPSIS 🌸

bool of_phandle_args_equal (const struct of_phandle_args *a1 , const
       struct of_phandle_args *a2 );

like, it takes two pointers and hands you back a bool. simple queen behavior. πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • a1 β€” the first of_phandle_args to compare, aka contestant number one πŸ’…
  • a2 β€” the second of_phandle_args to compare, aka contestant number two, we love a fair fight ✨

πŸ”₯ RETURN πŸ”₯

true if a1 and a2 are the same (same node pointer, same phandle args), and false otherwise. no cap, that's the whole return contract β€” same node pointer AND same phandle args or it's a no from her πŸ’€

ngl this is the "are they twins or just matching outfits" function. same node pointer + same phandle args = true. anything else = false, periodt.

🌈 SEE ALSO 🌈

the whole friend group, in the order the kernel file lists them 🧚

Kernel file ./include/linux/of.h:


and that's the page!! πŸŽ€ source path is ./include/linux, the version stamp says October 2026, and the whole thing is filed under of_phandle_args_equal(9) β€” mwah, go compare some structs bestie, ily, bye πŸ’œπŸŒŸ

πŸ“¦ where this page comes from