of_platform_bus_probe(9)
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 orNULLfor 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,NULLfor toplevel. hook them up from here, or go toplevel withNULLπ«Ά
π₯ 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 providedrootare not instantiated as devices unless the specifiedrootitself matches the bus list and is notNULL. thatβs the whole caveat π
π SEE ALSO π
Kernel file ./drivers/of/platform.c β and these iconic references:
of_find_device_by_node(9)of_device_alloc(9)of_platform_device_create_pdata(9)of_platform_device_create(9)of_platform_bus_create(9)of_platform_populate(9)of_platform_depopulate(9)devm_of_platform_populate(9)devm_of_platform_depopulate(9)
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
- 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