of_have_populated_dt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ‘‘:

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