STRUCT VDEC_MSG_QUEUE_CTX(9)
π struct vdec_msg_queue_ctx(9) π
okay so bestie, we're in the Kernel API Manual today and I need you to meet struct vdec_msg_queue_ctx β literally the whole vibe of this page is "represents a queue for buffers ready to be processed" and honestly? she's serving organization. π
β¨ NAME β¨
struct vdec_msg_queue_ctx β no cap, this is the struct that represents a queue for buffers ready to be processed. like that's her whole job and she does it. π
π¦ SYNOPSIS π¦
struct vdec_msg_queue_ctx {
wait_queue_head_t ready_to_use;
struct list_head ready_queue;
spinlock_t ready_lock;
int ready_num;
int hardware_index;
};
like, look at her. five members. zero notes. πΈ
π«Ά Members π«Ά
ready_to_useβ this is the ready used queue, and its whole moment is signaling when you get a job queue. she's the "hey bestie, something's ready" girlie. β¨ready_queueβ the list of ready lat buffer queues. yes, lat. that's the name, don't come for me. π¦ready_lockβ a spin lock whose entire purpose in life is to protect the lat buffer usage. do not touch the buffers without her, i'm serious. πready_numβ the number of buffers that are ready to be processed. a little counter. a little headcount. iconic. π₯hardware_indexβ the hardware id that this queue is used for. so she knows which hardware she belongs to. main character mapping energy. π
π SEE ALSO π
so like, if you want the lore, start with the Kernel file:
./drivers/media/platform/mediatek/vcodec/decoder/vdec_msg_queue.h
and then the extended universe, in order, no skipping (iykyk):
enum core_ctx_status(9)struct vdec_lat_buf(9)struct vdec_msg_queue(9)vdec_msg_queue_init(9)vdec_msg_queue_init_ctx(9)vdec_msg_queue_qbuf(9)vdec_msg_queue_dqbuf(9)vdec_msg_queue_update_ube_rptr(9)vdec_msg_queue_update_ube_wptr(9)vdec_msg_queue_wait_lat_buf_full(9)vdec_msg_queue_deinit(9)
ok that's the whole page, go read the header file, mwah π
and that's a wrap bestie!! π this one's straight out of ./drivers/media/platform/media..., dated October 2026, and it's struct vdec_msg_queue_ctx(9) forever and always ππ¦β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms