cmdq_pkt_create(9)
π cmdq_pkt_create(9) β like, the CMDQ packet maker π
okay so bestie, welcome to another β¨Kernel API Manualβ¨ page β yes this is cmdq_pkt_create(9) from the one and only Kernel API Manual, and no I will not be normal about it.
π NAME π
cmdq_pkt_create β literally makes you a CMDQ packet, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
int cmdq_pkt_create (struct cmdq_client *client , struct cmdq_pkt *pkt ,
size_t size );
three args, one int out the door, we love a clean signature π
πΈ ARGUMENTS πΈ
clientβ the CMDQ mailbox client, your main character πpktβ the CMDQ packet itself, the lil guy in question π¦sizeβ how big the CMDQ buffer needs to be, the required one fr fr
π RETURN π
0 means slay, it worked. anything else and you get an error code back instead β not iconic, but that's how it is π
π SEE ALSO π
the kernel file where all the lore lives:
./include/linux/soc/mediatek/mtk-cmdq.h
and the whole friend group, no gatekeeping here bestie π
cmdq_dev_get_client_reg(9)cmdq_mbox_create(9)cmdq_mbox_destroy(9)cmdq_pkt_destroy(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)
that's the entire roster and yes I listed every single one, because I keep every detail π
okay that's the whole page!! ty for coming to my ted talk, this came from ./include/linux/soc/mediatek and the date stamp says October 2026, so mark your calendars bestie ποΈβ 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