of_phandle_args_equal(9)
π 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 firstof_phandle_argsto compare, aka contestant number one πa2β the secondof_phandle_argsto 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:
of_node_init(9)of_machine_is_compatible(9)of_parse_phandle(9)of_parse_phandle_with_args(9)of_parse_phandle_with_fixed_args(9)of_parse_phandle_with_optional_args(9)of_property_count_u8_elems(9)of_property_count_u16_elems(9)of_property_count_u32_elems(9)of_property_count_u64_elems(9)of_property_read_string_array(9)of_property_count_strings(9)of_property_read_string_index(9)of_property_present(9)of_property_read_u8_array(9)of_property_read_u16_array(9)of_property_read_u32_array(9)of_property_read_u64_array(9)struct of_changeset_entry(9)struct of_changeset(9)of_device_is_system_power_controller(9)of_have_populated_dt(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms