of_platform_bus_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hey bestie!! welcome to the of_platform_bus_create(9) page in the Kernel API Manual ✨ the official vibe is Create a device for a node and its children. β€” and that's the whole name, periodt πŸ’…


🌸 SYNOPSIS 🌸

okay so here's the exact signature, copied with love and zero edits:

       int of_platform_bus_create (struct device_node *bus , const struct
       of_device_id *matches , const struct of_dev_auxdata *lookup , struct
       device *parent , bool strict );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • bus β€” the device node of the bus to instantiate, bestie 🫢
  • matches β€” the match table for bus nodes ✨
  • lookup β€” the auxdata table for matching id and platform_data with device nodes πŸ’œ
  • parent β€” the parent for the new device, or NULL for top level πŸ™ˆ
  • strict β€” require the compatible property πŸ”₯

πŸŽ€ DESCRIPTION πŸŽ€

okay so this one creates a platform_device for the device_node you give it πŸ’– and optionally it goes recursive and creates devices for all the child nodes too β€” like it's collecting the whole friend group, not just the main character 🌈✨

πŸ’« SEE ALSO πŸ’«


okay bye bestie!! this page lives in the kernel source tree at ./drivers/of, the version/date stamp is October 2026, and the manual page is of_platform_bus_create(9) πŸ«ΆπŸ’…βœ¨

πŸ“¦ where this page comes from