of_scan_flat_dt_subnodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_scan_flat_dt_subnodes(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for of_scan_flat_dt_subnodes β€” it's giving "small but iconic kernel helper" energy, and we're gonna get you comfy with it. 🫢


✨ NAME ✨

of_scan_flat_dt_subnodes β€” scan sub-nodes of a node and call the callback on each. fr fr, that's the whole assignment. πŸ’–


🌸 SYNOPSIS 🌸

okay so here's the exact signature β€” don't let the function-pointer moment scare you, it's literally fine:

int of_scan_flat_dt_subnodes (unsigned long parent , int (*it)(unsigned long node, const char *uname, void *data) , void *data );

πŸŽ€ ARGUMENTS πŸŽ€

the whole cast, no cap:

  • parent β€” parent node, obvi.
  • it β€” callback function β€” the callback that gets called on each sub-node, iykyk.
  • data β€” context data pointer. your context data pointer, sitting there being useful. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

This function is used to scan sub-nodes of a node. that's the tea, that's the vibe, that's the entire description. β˜•βœ¨


πŸ’œ SEE ALSO πŸ’œ

the besties it links to β€” same exact refs, mwah:


xoxo, your Unix bestie πŸ’… source/version: ./drivers/of Β· date: October 2026 Β· page: of_scan_flat_dt_subnodes(9). mwah πŸ’–
πŸ“¦ where this page comes from