of_dev_hwmod_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Bestie, welcome to the of_dev_hwmod_lookup(9) entry in the Kernel API Manual πŸ’– β€” this one is literally of_dev_hwmod_lookup β€” look up needed hwmod from dt blob. No cap, that's the whole NAME vibe.


✨ SYNOPSIS ✨

int of_dev_hwmod_lookup (struct device_node *np , struct omap_hwmod *oh
       , int *index , struct device_node **found );

πŸŽ€ ARGUMENTS πŸŽ€

Here's the cast of characters, bestie 🫢:

  • np β€” struct device_node *
  • oh β€” struct omap_hwmod *
  • index β€” index of the entry found
  • found β€” struct device_node * found or NULL

πŸ’… DESCRIPTION πŸ’…

Okay so this icon parses the dt blob and finds out the needed hwmod ✨. A recursive function is implemented to take care of hierarchical dt blob parsing β€” yes bestie, recursive, because the dt blob is hierarchical and this function handles it πŸ’….

πŸ”₯ RETURN πŸ”₯

Returns 0 on success, -ENODEV when not found 😭.

  • 0 β€” success, slay ✨
  • -ENODEV β€” not found, sad girl hours πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file bestie alert: ./arch/arm/mach-omap2/omap_hwmod.c 🫢 β€” and the related-entry group chat is huge, so buckle up:


okay that's the whole page, bestie 🫢 β€” source/version vibes are ./arch/arm/mach-omap2, dated October 2026, and it's the of_dev_hwmod_lookup(9) manual entry. Bye πŸ’–βœ¨

πŸ“¦ where this page comes from