STRUCT MEDIA_PAD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 struct media_pad(9) β€” Kernel API Manual 🌈

🌸 NAME 🌸

struct media_pad β€” a media pad graph object. That's the whole vibe, bestie. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct media_pad {
    struct media_gobj graph_obj;
    struct media_entity *entity;
    u16 index;
    u16 num_links;
    enum media_pad_signal_type sig_type;
    unsigned long flags;
    struct media_pipeline *pipe;
};

πŸ’– Members πŸ’–

Okay, meet the cast of this struct β€” every field matters, no skipping. 🫢

  • graph_obj β€” the embedded structure holding the media object's common data. It's giving "shared foundation" energy. ✨
  • entity β€” the entity this pad belongs to. Your fave's home base. πŸ’…
  • index β€” pad index in the entity pads array, numbered from 0 to n. Literally the seat number, bestie. πŸŽ€
  • num_links β€” number of links connected to this pad. The link count, periodt. ✨
  • sig_type β€” type of the signal inside a media pad. Signal type, slay. πŸ’œ
  • flags β€” pad flags, as defined in :ref:include/uapi/linux/media.h <media_header> (seek for MEDIA_PAD_FL_*). Important: look for that pattern, bestie. πŸ‘‘
  • pipe β€” pipeline this pad belongs to. Use media_entity_pipeline to access this field. That's the access path, no cap. 🫢

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/media/media-entity.h is where this whole friend group lives. Here's the full roll call, fr fr:


Source/version: ./include/media πŸŽ€ Date: October 2026 πŸ’œ β€” bye bestie, go be iconic! 🌈

πŸ“¦ where this page comes from