cmdq_pkt_wfe(9)
β¨ cmdq_pkt_wfe(9) β¨
okay so bestie, this is a page straight outta the Kernel API Manual β cmdq_pkt_wfe(9), and it is literally the "append wait for event command to the CMDQ packet" girlie. that's the whole NAME vibe. let's get into it π
πΈ SYNOPSIS πΈ
int cmdq_pkt_wfe (struct cmdq_pkt *pkt , u16 event , bool clear );
yes she takes three args and returns an int. iconic signature, no notes π«Ά
π ARGUMENTS π
pktβ the CMDQ packet. this is the packet you're appending onto, the main character of the whole operation πeventβ the desired event type to wait for, typed asu16. like, the specific event you're holding out for β¨clearβ aboolthat decides whether the event gets cleared or not after the event arrives. so: clear it, or don't. the choice is yours π¦
β RETURN β
0 for success β slay π β else the error code is returned. ngl if you see a nonzero value, something went sideways and that code is telling you what π
π₯ SEE ALSO π₯
the kernel file lives right here, go peek:
Kernel file ./include/linux/soc/mediatek/mtk-cmdq.h
and here's the whole friend group, all the related cmdq besties β every single one, no gatekeeping π:
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_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 whole page, bestie β go wait on some events π
love u, bye!! this one came from ./include/linux/soc/mediatek and it's dated October 2026, so drink some water and read ur kernel headers π§
π¦ 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