STRUCT VDEC_MSG_QUEUE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vdec_msg_queue(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct vdec_msg_queue(9) β€” yes that IS the whole title, and yes we're gonna get through it together. this one's all about a struct that's "used to store lat buffer message". that's the vibe. let's go 🫢


✨ NAME ✨

struct vdec_msg_queue β€” literally here to store the lat buffer message. that's its whole job. main character energy fr fr πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct vdec_msg_queue {
    struct vdec_lat_buf lat_buf[NUM_BUFFER_COUNT];
    struct mtk_vcodec_mem wdma_addr;
    u64 wdma_rptr_addr;
    u64 wdma_wptr_addr;
    struct work_struct core_work;
    struct vdec_msg_queue_ctx lat_ctx;
    struct vdec_msg_queue_ctx core_ctx;
    atomic_t lat_list_cnt;
    atomic_t core_list_cnt;
    bool flush_done;
    struct vdec_lat_buf empty_lat_buf;
    wait_queue_head_t core_dec_done;
    int status;
    struct mtk_vcodec_dec_ctx *ctx;
 };

look at her. iconic. every field in its place, no notes πŸ‘‘


πŸŽ€ Members πŸŽ€

okay now the fun part β€” let's meet the whole cast, one by one:

  • lat_buf β€” the lat buffer, and its job is storing lat buffer information. yes bestie, that's the description, we don't make the rules πŸ’€
  • wdma_addr β€” the wdma address, used for ube. that's what it's for, no cap.
  • wdma_rptr_addr β€” the ube read point. πŸ“
  • wdma_wptr_addr β€” the ube write point. πŸ“ and it's the write one, don't get it twisted.
  • core_work β€” the core hardware work. she's booked and busy.
  • lat_ctx β€” used to store the lat buffer list. πŸ—‚οΈ
  • core_ctx β€” used to store the core buffer list. πŸ—‚οΈ same energy, different list.
  • lat_list_cnt β€” used to record each instance lat list count. per-instance, okay? very demure, very mindful.
  • core_list_cnt β€” used to record each instance core list count. matching set πŸŽ€
  • flush_done β€” core flush done status. it's giving "is it finished? yes ma'am" ✨
  • empty_lat_buf β€” the last lat buf, used to flush decode. she's the closer.
  • core_dec_done β€” core work queue decode done event. the event that says we're DONE done πŸ”₯
  • status β€” current context decode status for core hardware. the vibe check, essentially.
  • ctx β€” mtk vcodec context information. the big picture 🧚

🌈 SEE ALSO 🌈

the required reading, iykyk:

like, go read them. they're all right there. obsessed 🫢


ok that's the whole page bestie, you ate that. now go init some queues πŸ’œ

mwah πŸ’‹ this little love letter came from ./drivers/media/platform/media... and it's dated October 2026 β€” and yeah, the page signs off as struct vdec_msg_queue(9), periodt. 🌸

πŸ“¦ where this page comes from