cmdq_pkt_clear_event(9)
π cmdq_pkt_clear_event β kernel API manual, bestie edition
okay so real talk, the function we're talking about is cmdq_pkt_clear_event β it lives in the kernel API manual (section 9, the kernel-functions girlies) and honestly? it's a whole little vibe. she appends a clear event command to the CMDQ packet. that's it. that's the job. and she does it flawlessly. β¨
π NAME π
cmdq_pkt_clear_event β append clear event command to the CMDQ packet
like literally what it says on the tin, no cap. you got a packet, you got an event, you want that event cleared, and she's gonna append the command that does it. iconic behaviour honestly π
β¨ SYNOPSIS β¨
int cmdq_pkt_clear_event (struct cmdq_pkt *pkt , u16 event );
she takes two things and hands you back an int. simple. elegant. never missed. π«Ά
πΈ ARGUMENTS πΈ
pktβ the CMDQ packet π this is the packet you're stuffing the command into, the main character of the whole operationeventβ the desired event to be cleared π au16, and it's exactly the event your heart desires to clear. no other event. that one. her.
β RETURN β
0 for success π β and if it's anything else, that's an error code being returned, so likeβ¦ pay attention bestie π
ngl if you get a non-zero back, something went sideways, and the return value is telling you what. don't ignore her. she's trying to communicate. π
π¦ SEE ALSO π¦
the kernel file, for when you wanna go straight to the source (respect):
Kernel file ./include/linux/soc/mediatek/mtk-cmdq.h
and the whole friend group, fr fr β every single one of these is a real function and every single one is listed here for a reason, so here they all are, in order, no skips:
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_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)
π§ and that's the whole page, bestie. go clear those events. slay. π
sign-off corner: this little masterpiece comes from the source path ./include/linux/soc/mediatek, and it's dated October 2026 πΈ β so like, mark your calendars, she's timeless. 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