media_entit...e_pad_unique(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… media_entity_remote_source_pad_unique(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the Kernel API Manual, this one's a media-entity situation and honestly she's giving very functional, very single-source, very "we don't do chaos here" ✨


🌸 NAME 🌸

media_entity_remote_source_pad_unique β€” find a remote source pad that's connected to an entity, and like... make sure there's exactly one of them. no drama, no duplicates πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct media_pad * media_entity_remote_source_pad_unique (const struct media_entity *entity );

πŸŽ€ ARGUMENTS πŸŽ€

  • entity β€” the entity. that's it. that's the argument. she's the main character here πŸ‘‘

✨ DESCRIPTION ✨

So what she does is: she searches for a remote source pad that's connected to entity through an enabled link, and she returns it. 🫢

But here's the vibe check, and listen closely babe β€” if multiple remote pads match those criteria, or none do, you get an error back. no "close enough", no "pick a favourite". it's all or nothing, periodt πŸ’€

The whole uniqueness constraint is literally the point β€” it's what makes this helper function suitable for entities that only support a single active source at a time. icon behaviour, honestly. one source. one queen. no sharing. ✨

  • -ENOTUNIQ β€” multiple links are enabled. too many besties showed up 😭
  • -ENOLINK β€” no connected pad found. the group chat is empty πŸ’”

πŸ”₯ RETURN πŸ”₯

A pointer to the remote pad, or one of the following error pointers if an error occurs:

bestie please always check the return value β€” she can come back as an error pointer and that is not a pad, no cap πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/media/media-entity.h β€” and omg the whole extended universe shows up in this one, it's giving crossover episode 🌈


fr fr that's the whole list, don't come for me, I didn't pick them πŸ’€

okay and last thing bestie, the cute little sign-off: this page lives in ./include/media, dated October 2026, and it's all about media_entity_remote_source_pad_unique(9). go find your one true source pad, ily πŸ§šπŸ’œ

πŸ“¦ where this page comes from