cmdq_pkt_poll(9)
π NAME π
okay bestie, this is cmdq_pkt_poll(9) from the Kernel API Manual, and it's giving βappend a polling command to the CMDQ packetβ energy β¨. What it does: it asks GCE to execute an instruction that waits for a specified hardware register to check for the value w/o mask. π«Ά
β οΈ Blocking warning, no cap: all GCE hardware threads will be blocked by this instruction. Every single one. So like, plan around that, bestie. π
πΈ SYNOPSIS πΈ
here's the signature, exactly as it is:
int cmdq_pkt_poll (struct cmdq_pkt *pkt , u8 subsys , u16 offset , u32 value );
π ARGUMENTS π
pktβ the CMDQ packet. the packet bestie you're appending to.subsysβ the CMDQ sub system code. yep, that's the subsystem code.offsetβ register offset from CMDQ sub system. literally the offset from the CMDQ sub system.valueβ the specified target register value. the value you're checking for.
β¨ RETURN β¨
0 for success; else the error code is returned. so 0 is the slay outcome, anything else is the error code coming back at you. π
π¦ SEE ALSO π¦
Kernel file: ./include/linux/soc/mediatek/mtk-cmdq.h β that's the file, iykyk.
the whole CMDQ function bestie squad:
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_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)
okay bye bestie! π source/version: ./include/linux/soc/mediatek; date: October 2026; manual page: cmdq_pkt_poll(9) β¨
π¦ 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