of_platform_bus_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual page for of_platform_bus_probe(9) β€” manual name folded in near the top like a little bow πŸŽ€. This one is short, but it has a very specific vibe check, so listen up bestie.

✨ NAME ✨

of_platform_bus_probe β€” probe the device-tree for platform buses. lowercase iconic, periodt 🌸

πŸ¦‹ SYNOPSIS πŸ¦‹

       int of_platform_bus_probe (struct device_node *root , const struct
       of_device_id *matches , struct device *parent );

πŸ’… ARGUMENTS πŸ’…

  • root β€” parent of the first level to probe or NULL for the root of the tree. Like, choose your starting point, bestie 🌈
  • matches β€” match table for bus nodes. this is the guest list for the bus nodes, iykyk πŸŽ€
  • parent β€” parent to hook devices from, NULL for toplevel. hook them up from here, or go toplevel with NULL 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so here’s the one thing you cannot miss: the children of the provided root are not instantiated as devices unless the specified root itself matches the bus list and is not NULL. Like β€” both things need to line up, bestie. If the root is NULL or it doesn’t match the bus list, those children are not getting instantiated as devices. not me pointing at the fine print 😭

the plot twist: children of the provided root are not instantiated as devices unless the specified root itself matches the bus list and is not NULL. that’s the whole caveat πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/of/platform.c β€” and these iconic references:


xoxo from of_platform_bus_probe(9) πŸ’– β€” source/version: ./drivers/of, date: October 2026. go probe those platform buses, bestie, and don’t forget the root / matches / NULL of it all πŸ¦‹βœ¨

πŸ“¦ where this page comes from