__media_entity_next_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

ok so bestie, welcome to the glow-up edition of __media_entity_next_link(9), straight out of the Kernel API Manual ✨ this one's a lil helper that walks you through an entity's links one at a time, no cap πŸŽ€


✨ NAME ✨

__media_entity_next_link β€” literally just iterating through a &media_entity's links, that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

struct media_link * __media_entity_next_link (struct media_entity
*entity , struct media_link *link , unsigned long link_type );

πŸŽ€ ARGUMENTS πŸŽ€

  • entity β€” pointer to the media_entity πŸ‘‘ like, the main character here
  • link β€” pointer to a media_link that holds the iterated values πŸ” she's your little cursor babe
  • link_type β€” one of the MEDIA_LNK_FL_LINK_TYPE flags 🚩 pick your flavour

πŸ’– DESCRIPTION πŸ’–

Return the next link against an entity matching a specific link type. the way that this just *works*… it lets you iterate through an entity's links whilst guaranteeing all of the returned links are of the given type πŸ™Œ so no impostor links sneaking into your loop, periodt πŸ’…


🫢 SEE ALSO 🫢

it's giving "everyone's invited to the party" β€” here's the whole guest list, kernel file ./include/media/media-entity.h and friends πŸ’œ


and that's the whole page bestie, no notes πŸ’€ source is ./include/media, dated October 2026, from the Kernel API Manual β€” mwah, go iterate some links, ily πŸ§šπŸ’œβ­

πŸ“¦ where this page comes from