media_entit...pad_interdep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… media_entity_has_pad_interdep(9) β€” like, the Kernel API Manual, section 9 bestie πŸŽ€

okay so this is a page from the Kernel API Manual, section 9, and the whole thing lives under the very cute (and very truncated) name media_entit...pad_interdep(9). yes the header really is that dramatic. anyway. buckle up πŸ¦‹


✨ NAME ✨

media_entity_has_pad_interdep β€” checks the interdependency between two pads, no cap πŸ’…


🌸 SYNOPSIS 🌸

bool media_entity_has_pad_interdep (struct media_entity *entity ,
unsigned int pad0 , unsigned int pad1 );

literally that's it. three arguments and a bool. iconic. ✨


🫢 ARGUMENTS 🫢

  • entity β€” the entity we're snooping on, main character energy fr 🧚
  • pad0 β€” the first pad index πŸ“
  • pad1 β€” the second pad index 🌈

πŸ’– DESCRIPTION πŸ’–

so what this function actually does: it checks the interdependency inside the entity between pad0 and pad1. and if two pads are interdependent, that means they're part of the same pipeline, and enabling one of the pads means the other pad becomes "locked" β€” so it doesn't allow configuration changes. locked in. no edits. periodt. πŸ’€

the way it works is it uses the media_entity_operations.has_pad_interdep operation to check the dependency inside the entity between pad0 and pad1. and here's the plot twist: if the has_pad_interdep operation is not implemented, then all pads of the entity are considered to be interdependent. all of them. the whole friend group 🫢

one more thing bestie β€” one of pad0 and pad1 must be a sink pad and the other one a source pad. the function returns false if both pads are sinks or both pads are sources. like, no. that's not how this works. πŸ™ˆ

⚠️ the caller must hold entity->graph_obj.mdev->mutex. not me reminding you and you still forgetting. lock it. πŸ”’

πŸ‘‘ RETURN πŸ‘‘

true if the pads are connected internally, false otherwise. that's the whole vibe check πŸ’«


⭐ SEE ALSO ⭐

go read them. iykyk. πŸ¦‹


okay so that's the page!! sourced from ./drivers/media/mc, dated October 2026, and honestly? she ate. mwah πŸ’‹ go hold that mutex and slay πŸ”₯πŸ‘‘

πŸ“¦ where this page comes from