of_platform_device_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


okay that's the tea πŸ“: this page lives under source ./drivers/of, dated October 2026, and it's all about of_platform_device_create(9) πŸ’œ. mwah πŸ’…
πŸ“¦ where this page comes from