__media_entity_setup_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

Okay bestie, you're reading __media_entity_setup_link(9) from the Kernel API Manual β€” and it's literally here to configure a media link without locking. Slay.


✨ SYNOPSIS ✨

int __media_entity_setup_link (struct media_link *link , u32 flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” the link being configured. The one getting its little setup moment.
  • flags β€” link configuration flags. Yes, the flags that tell the link how to behave.

πŸ¦‹ DESCRIPTION πŸ¦‹

The bulk of link setup is handled by the two entities connected through the link. This function notifies both entities of the link configuration change. It's giving "middle friend passing the message along," but make it kernel.

If the link is immutable β€” rude β€” or if the current and new configuration are identical, it returns immediately. No drama, no extra work.

🚨 Important caveat, bestie: the user is expected to hold link->source->parent->mutex. If not, media_entity_setup_link should be used instead. No cap, that mutex detail matters.

🌈 SEE ALSO 🌈

The whole kernel friend group is here. Every single reference, periodt:


Source spot: ./include/media Β· date stamp: October 2026 Β· that's the whole page, bestie β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from