of_platform...create_pdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 populate platform_data pointer 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:


and that’s the whole page, bestie 🫢 source/version: ./drivers/of β€’ dated October 2026 ✨

πŸ“¦ where this page comes from