of_device_is...r_controller(9)
π of_device_is...r_controller(9) π
okay bestie, so this one is a page from the Kernel API Manual and it's lowkey tiny but it's mighty, so let's get into it β¨
πΈ NAME πΈ
of_device_is_system_power_controller β the function that tells you if system-power-controller is found for a device_node. that's it, that's the whole gig π
π¦ SYNOPSIS π¦
bool of_device_is_system_power_controller (const struct device_node *np
);
π ARGUMENTS π
npβ it's a pointer to the givendevice_node, bestie. that's the thing you're asking about π«Ά
β RETURN β
it gives you true if it's present, and false otherwise. binary queen behavior, no in-between, no "it depends" π
ngl this is the shortest return section i've ever seen and honestly? iconic. nothing extra, nothing messy, just vibes and a bool π₯
π SEE ALSO π
so there's a whole friend group here and they all live in the kernel file ./include/linux/of.h β go say hi to all of them π
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_phandle_args_equal(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_have_populated_dt(9)
and that's the whole page, bestie, you ate that π this little gem lives under ./include/linux and it's dated October 2026, so yeah β it's giving future icon, periodt β¨ππ
π¦ 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