of_scan_flat_dt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

of_scan_flat_dt β€” bestie, this one scans the flattened tree blob and hits up your callback on each node πŸ’… (we're in the Kernel API Manual, in case the vibe check needed a label ✨)


πŸŽ€ SYNOPSIS πŸŽ€

int of_scan_flat_dt (int (*it)(unsigned long node, const char *uname,
int depth, void *data) , void *data );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • it β€” the callback function, aka the little guy that gets called for every node 🫢
  • data β€” the context data pointer, your emotional support pointer, passed right along 😌

πŸ’– DESCRIPTION πŸ’–

Okay so real talk: this function is for scanning the flattened device-tree ✨. It exists so you can yank the memory information out at boot, before we're even allowed to unflatten the tree 😭 like the tree's still flat, the info's still in there, and of_scan_flat_dt is the one who goes and gets it. Main character energy, no cap πŸ‘‘.

It literally calls your callback on each node it finds. That's it. That's the whole gig. Slay πŸ’….


🌈 SEE ALSO 🌈

Kernel file ./drivers/of/fdt.c and its whole friend group 🫢 β€” go say hi:


okay that's the whole page, bestie, ily, go scan some trees 🌳✨ β€” this masterpiece lives in ./drivers/of, dated October 2026, and it's signed off with a kiss πŸ’‹ πŸŽ€ periodt πŸ’–

πŸ“¦ where this page comes from