cmdq_pkt_eoc(9)
β¨ cmdq_pkt_eoc β the Kernel API Manual glow-up β¨
okay bestie so you're reading the Kernel API Manual entry for cmdq_pkt_eoc, and honestly? it's giving "one tiny function, huge main character energy" π
let's get into it.
πΈ NAME πΈ
cmdq_pkt_eoc β appends an EOC and asks the GCE to generate an IRQ at the end of execution π
π¦ SYNOPSIS π¦
int cmdq_pkt_eoc (struct cmdq_pkt *pkt );
π ARGUMENTS π
pktβ the CMDQ packet, iykyk. this is the thing you're appending to π«Ά
π DESCRIPTION π
okay so here's the vibe: this function appends an End Of Code (EOC) command to the CMDQ packet, and it asks the GCE to generate an interrupt at the end of the execution of all commands in the pipeline β
and like, the EOC command is usually appended to the end of the pipeline β that's its whole moment β so it can notify that all the commands are done. literally the "we're so back / it's over" of the pipeline πβ¨
π₯ RETURN π₯
0 for success, or a negative error number π (ngl we're rooting for the 0)
π SEE ALSO π
the kernel file lives right here, no cap:
./include/linux/soc/mediatek/mtk-cmdq.h
and here's the whole friend group, all of them, every single one π
cmdq_dev_get_client_reg(9)cmdq_mbox_create(9)cmdq_mbox_destroy(9)cmdq_pkt_create(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)
and that's the whole page, bestie π§ this one comes from ./include/linux/soc/mediatek, dated October 2026, and it's the cmdq_pkt_eoc(9) entry π slay, go append your EOC π
π
π¦ 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