of_have_populated_dt(9)
π of_have_populated_dt(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a tiny lil function with main character energy β it's literally just a vibe check on your device tree, no cap π
πΈ NAME πΈ
of_have_populated_dt β bestie, it tells you whether the DT has been populated by the bootloader π
β¨ SYNOPSIS β¨
bool of_have_populated_dt (void );
π¦ ARGUMENTS π¦
voidβ no arguments, periodt π it takes absolutely nothing, she's low maintenance
π₯ RETURN π₯
Returns True if a DTB has been populated by the bootloader and it isn't the empty builtin one π«Ά
Returns False otherwise π that's it, that's the whole tea β
ngl the "and it isn't the empty builtin one" part is doing a lot of heavy lifting here β an empty builtin DTB does not count as populated, fr fr π
π§ SEE ALSO π§
the kernel file ./include/linux/of.h is the homeland bestie, and here's the whole squad of siblings π:
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_device_is_system_power_controller(9)
that's a whole friend group and they all ate π
β¨ and that's the whole page, bestie β¨ sign-off time: this lil cutie lives under ./include/linux, stamped October 2026, and it's filed as of_have_populated_dt(9) ππ go forth and vibe check your device tree ππ¦π
π¦ 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