omap_device_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap_device_alloc(9) β€” like, the whole kernel API manual vibe πŸŽ€

okay so bestie, welcome to the glow-up of omap_device_alloc πŸ’– this is a page from the Kernel API Manual, and it's genuinely so cute once you get past the scary C. let's go πŸ¦‹


✨ NAME ✨

omap_device_alloc β€” allocate an omap_device 🫢 (yes that's literally the whole name section, she's concise and iconic)


🌸 SYNOPSIS 🌸

struct omap_device * omap_device_alloc (struct platform_device *pdev ,
       struct omap_hwmod **ohs , int oh_cnt );

three args, one pointer out, main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the platform_device that's gonna be included in this omap_device. she's coming with you πŸ’…
  • ohs β€” ptr to the omap_hwmod for this omap_device. like, the hwmod array, but make it a pointer πŸ™ˆ
  • oh_cnt β€” the size of the ohs list. yes, somebody has to keep count, and that somebody is this int πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

okay so this is a convenience function ✨ for allocating an omap_device structure and filling in hwmods, and resources. no cap, that's what she does β€” allocate, then fill 🧚

she returns a struct omap_device pointer, or an ERR_PTR on error 😭 (so like, check it, don't just vibe with it β€” but fr fr, that's just what the page says, I'm not adding lore πŸ’€)

ngl the original literally ends that sentence with a semicolon instead of a period. we respect the semicolon here. periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

the whole squad is tagged, go read them too, iykyk πŸŒˆβ­πŸ“


and that's the tea 🍡 πŸ’– this page lives in ./arch/arm/mach-omap2 and it's dated October 2026 β€” mark your calendars bestie, and slay your OMAP bring-up πŸ’…βœ¨πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from