cmdq_pkt_destroy(9)
π cmdq_pkt_destroy(9) β from the Kernel API Manual, bestie
okay so. this is a page straight out of the Kernel API Manual, and it's about one (1) tiny little function that does exactly what it says on the tin. no cap.
β¨ NAME β¨
cmdq_pkt_destroy β destroy the CMDQ packet ποΈπ
like... that's it. that's the whole job. she destroys the packet. icon behavior.
πΈ SYNOPSIS πΈ
void cmdq_pkt_destroy (struct cmdq_client *client , struct cmdq_pkt *pkt
);
so it's void β meaning it hands nothing back to you, no return value, no little receipt, nada. it just does the thing and dips. π«Ά
π ARGUMENTS π
clientβ the CMDQ mailbox client π€ like, the mailbox-y context this whole situation lives in.pktβ the CMDQ packet π¦ the actual packet being destroyed. gone. reduced to atoms.
both of these are pointers, so pls don't hand her garbage β she's a struct girlie and she knows what she's about.
π¦ SEE ALSO π¦
first up, the source of truth, the mothership:
- Kernel file
./include/linux/soc/mediatek/mtk-cmdq.h
and then the whole extended friend group β every single one of these cmdq besties:
cmdq_dev_get_client_reg(9)cmdq_mbox_create(9)cmdq_mbox_destroy(9)cmdq_pkt_create(9)cmdq_pkt_write(9)cmdq_pkt_write_pa(9)cmdq_pkt_write_subsys(9)cmdq_pkt_write_mask(9)cmdq_pkt_write_mask_pa(9)cmdq_pkt_write_mask_subsys(9)cmdq_pkt_write_s(9)cmdq_pkt_write_s_mask(9)cmdq_pkt_write_s_value(9)cmdq_pkt_write_s_mask_value(9)cmdq_pkt_mem_move(9)cmdq_pkt_wfe(9)cmdq_pkt_acquire_event(9)cmdq_pkt_clear_event(9)cmdq_pkt_set_event(9)cmdq_pkt_poll(9)cmdq_pkt_poll_mask(9)cmdq_pkt_logic_command(9)cmdq_pkt_assign(9)cmdq_pkt_poll_addr(9)cmdq_pkt_jump_abs(9)cmdq_pkt_jump_rel(9)cmdq_pkt_jump_rel_temp(9)cmdq_pkt_eoc(9)
not me listing twenty-eight (28) manpages like it's a groupchat roll call π every single one kept, bestie. i don't gatekeep. π
ngl the original page says absolutely nothing about what happens if you pass a bad pointer or double-destroy, so i'm not gonna sit here and invent lore about it. don't be weird, pass real pointers. periodt. π₯
and that's the page! π source: ./include/linux/soc/mediatek, dated October 2026, and the title duh β cmdq_pkt_destroy(9). mwah πβ¨
π¦ 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