STRUCT MTK_MDP_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mtk_mdp_dev(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the Kernel API Manual entry for struct mtk_mdp_dev(9) β€” yes that's the manual name, iykyk, we're doing this 🫢


🌸 NAME 🌸

struct mtk_mdp_dev β€” the abstraction for the image processor entity, periodt πŸ’–


✨ SYNOPSIS ✨

struct mtk_mdp_dev {
    struct mutex                    lock;
    struct mutex                    vpulock;
    struct platform_device          *pdev;
    struct mtk_mdp_variant          *variant;
    u16 id;
    struct list_head                comp_list;
    struct v4l2_m2m_dev             *m2m_dev;
    struct list_head                ctx_list;
    struct video_device             *vdev;
    struct v4l2_device              v4l2_dev;
    struct workqueue_struct         *job_wq;
    struct platform_device          *vpu_dev;
    int ctx_num;
    unsigned long                   id_counter;
    struct workqueue_struct         *wdt_wq;
    struct work_struct              wdt_work;
 };

like, look at her. main character struct energy πŸ‘‘


πŸŽ€ Members πŸŽ€

  • lock β€” the mutex protecting this data structure, no cap. she guards the whole vibe πŸ’…
  • vpulock β€” the mutex protecting the communication with VPU. yes, another one. two locks, two moods 😭
  • pdev β€” pointer to the image processor platform device πŸ¦‹
  • variant β€” the IP variant information, aka which flavor of silicon we're dealing with ✨
  • id β€” image processor device index, literally 0..MTK_MDP_MAX_DEVS πŸ“
  • comp_list β€” list of MDP function components 🌈
  • m2m_dev β€” v4l2 memory-to-memory device data, the m2m icon herself πŸ’–
  • ctx_list β€” list of struct mtk_mdp_ctx 🧚
  • vdev β€” video device for image processor driver πŸ“Ή
  • v4l2_dev β€” V4L2 device to register video devices for. (that trailing period is canon, keep it πŸ’€)
  • job_wq β€” processor work queue πŸ”₯
  • vpu_dev β€” VPU platform device πŸ‘‘
  • ctx_num β€” counter of active MTK MDP context πŸ”’
  • id_counter β€” an integer id given to the next opened context ⭐
  • wdt_wq β€” work queue for VPU watchdog πŸ•
  • wdt_work β€” worker for VPU watchdog πŸ•β€πŸ¦Ί

🌟 SEE ALSO 🌟

  • Kernel file ./drivers/media/platform/mediatek/mdp/mtk_mdp_core.h
  • struct mtk_mdp_pix_align(9)
  • struct mtk_mdp_fmt(9)
  • struct mtk_mdp_addr(9)
  • struct mtk_mdp_frame(9)
  • struct mtk_mdp_variant(9)
  • struct mtk_mdp_ctx(9)

like, go read them all, bestie β€” the whole friend group is iconic πŸ’œ

ngl, these paths are your map, don't @ me β€” just go look πŸ‘€

and that's the whole page, fr fr πŸŽ€ cute little sign-off time: this gem comes from ./drivers/media/platform/media..., dated October 2026, and it's giving timeless documentation energy πŸ’« slay, bye! πŸ’…βœ¨

πŸ“¦ where this page comes from