of_platform_device_create(9)
π of_platform_device_create(9) π
okay so welcome to the Kernel API Manual page for of_platform_device_create(9) β yes bestie, that long name is real and it's lowkey iconic π. here's the whole vibe check, no details skipped.
πΈ NAME πΈ
of_platform_device_create β Alloc, initialize and register an of_device. periodt.
β¨ SYNOPSIS β¨
struct platform_device * of_platform_device_create (struct device_node
*np , const char *bus_id , struct device *parent );
π«Ά ARGUMENTS π«Ά
npβ pointer to node to create device for. this is the node bestie.bus_idβ name to assign device. yes, that exact name.parentβ Linux device model parent device. your parent-device main character.
π RETURN π
Pointer to created platform device, or NULL if a device was not registered. Unavailable devices will not get registered. so if you get NULL, that's the βnot registeredβ vibe β no cap. unavailable devices just won't get registered, periodt.
π SEE ALSO π
Kernel file: ./drivers/of/platform.c β go read it bestie, iykyk. also these:
of_find_device_by_node(9)of_device_alloc(9)of_platform_device_create_pdata(9)of_platform_bus_create(9)of_platform_bus_probe(9)of_platform_populate(9)of_platform_depopulate(9)devm_of_platform_populate(9)devm_of_platform_depopulate(9)
okay that's the tea π: this page lives under source./drivers/of, datedOctober 2026, and it's all aboutof_platform_device_create(9)π. mwah π
π¦ 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