omap_device_alloc(9)
π 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β theplatform_devicethat's gonna be included in thisomap_device. she's coming with you πohsβ ptr to theomap_hwmodfor thisomap_device. like, the hwmod array, but make it a pointer πoh_cntβ the size of theohslist. yes, somebody has to keep count, and that somebody is thisintπ₯
π 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 π¦
- Kernel file
./arch/arm/mach-omap2/omap_device.cπ _add_hwmod_clocks_clkdev(9)omap_device_build_from_dt(9)_omap_device_enable_hwmods(9)_omap_device_idle_hwmods(9)omap_device_enable(9)omap_device_idle(9)omap_device_assert_hardreset(9)omap_device_deassert_hardreset(9)omap_device_late_idle(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms