STRUCT OMAP_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the struct omap_device(9) page from the Kernel API Manual β€” section 9, no cap. It’s giving kernel-internals realness, and we’re gonna read it together πŸ’…βœ¨

πŸ’– NAME πŸ’–

  • struct omap_device β€” the omap_device wrapper for platform_devices, periodt 🫢

🌸 SYNOPSIS 🌸

       struct omap_device {
           struct platform_device          *pdev;
           unsigned long                   _driver_status;
           u8 hwmods_cnt;
           u8 _state;
           u8 flags;
           struct omap_hwmod               *hwmods[];
        };

🫢 Members 🫢

  • pdev β€” a platform_device πŸ’–
  • _driver_status β€” one of BUS_NOTIFY_*_DRIVER from <linux/device.h> ✨
  • hwmods_cnt β€” ARRAY_SIZE of hwmods πŸŽ€
  • _state β€” one of OMAP_DEVICE_STATE_* (see above) πŸ¦‹
  • flags β€” device flags ⭐
  • hwmods β€” (one .. many per omap_device) 🌸

🌈 Description 🌈

It integrates omap_hwmod data into Linux platform_device β€” literally the whole point, and it ate πŸ”₯

Field names beginning with underscores are for the internal use of the omap_device code. So like, bestie, those underscores are not a vibe check you get to ignore πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./arch/arm/mach-omap2/omap_device.h β€” go read it, iykyk πŸ’œ


made with πŸ’– from ./arch/arm/mach-omap2, dated October 2026, and this whole iconic page is struct omap_device(9) β€” bye bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from