_add_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for _add_link(9) β€” this one is a tiny little setup function with main-character energy, and we're gonna get into it πŸ’–


🌸 NAME 🌸

_add_link β€” add an interconnect between two IP blocks


✨ SYNOPSIS ✨

int _add_link (struct omap_hwmod_ocp_if *oi );

πŸŽ€ ARGUMENTS πŸŽ€

  • oi β€” pointer to a struct omap_hwmod_ocp_if record

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function is literally doing the link-up: it adds struct omap_hwmod_link records connecting the slave IP block specified in oi->slave to oi. Slay πŸ’…

⚠️ Bestie, important vibe check: this code is assumed to run before preemption or SMP has been enabled, thus avoiding the need for locking in this code. Changes to this assumption will require additional locking. No cap, that's the rule 🫢

And yep β€” it returns 0. Periodt. ✨


🌈 SEE ALSO 🌈

Kernel file ./arch/arm/mach-omap2/omap_hwmod.c, plus this whole friend group:


xoxo, your kernel bestie πŸ’– β€” source/version stamp: ./arch/arm/mach-omap2 Β· date: October 2026 Β· page: _add_link(9) πŸŽ€

πŸ“¦ where this page comes from