media_create_ancillary_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the group chat 🫢 you're in the Kernel API Manual and today's main character is media_create_ancillary_link(9) β€” iykyk πŸ’–


🌸 NAME 🌸

media_create_ancillary_link β€” create an ancillary link between two instances of &media_entity πŸŽ€


✨ SYNOPSIS ✨

struct media_link * media_create_ancillary_link (struct media_entity
*primary , struct media_entity *ancillary );

literally the whole signature, no notes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • primary β€” pointer to the primary media_entity πŸ‘‘
  • ancillary β€” pointer to the ancillary media_entity 🧚

πŸ’– DESCRIPTION πŸ’–

okay so this one is so cute actually. you're creating an ancillary link between two entities, and what that means is you're saying "hey, these two represent two connected pieces of hardware that form a single logical unit" 🌈

the iconic example: a camera lens controller being linked to the sensor that it is supporting πŸ”₯ that's the vibe fr fr.

and the best part? the function sets both MEDIA_LNK_FL_ENABLED and MEDIA_LNK_FL_IMMUTABLE for the new link πŸ’€ it's giving "committed relationship" energy, no takebacks, periodt ✨


πŸ‘‘ SEE ALSO πŸ‘‘

πŸ“ Kernel file

  • ./include/media/media-entity.h

🌸 the full squad (yes, all of them, i'm not skipping anyone bestie)


that's the whole page bestie, no crumbs left behind πŸ“

okay and before you go β€” this lil beauty lives in ./include/media, the manual is the Kernel API Manual, and this edition is dated October 2026 πŸ“… love that for us. mwah, go link some hardware πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from