of_platform...create_pdata(9)
π NAME π
okay so welcome to the Kernel API Manual page for of_platform...create_pdata(9) β literally the main character of this page. The actual name entry is of_platform_device_create_pdata: Alloc, initialize and register an of_device β¨
π¦ SYNOPSIS π¦
hereβs the exact signature, no cap:
struct platform_device * of_platform_device_create_pdata (struct device_node *np , const char *bus_id , void *platform_data , struct device *parent );
π ARGUMENTS π
npβ pointer to node to create device for π±bus_idβ name to assign device π·οΈplatform_dataβ pointer to populateplatform_datapointer with πΎparentβ Linux device model parent device π
π RETURN π
Pointer to created platform device, or NULL if a device was not registered. Unavailable devices will not get registered β periodt. π
π₯ SEE ALSO π₯
Kernel file ./drivers/of/platform.c is the source-y bestie here, and these links are giving serious crossover energy:
of_find_device_by_node(9)of_device_alloc(9)of_platform_device_create(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)
and thatβs the whole page, bestie π«Ά source/version: ./drivers/of β’ dated October 2026 β¨
π¦ 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