cmdq_pkt_write_mask(9)
β¨ cmdq_pkt_write_mask(9) β¨
okay so bestie, this is a page from the Kernel API Manual and it's literally about cmdq_pkt_write_mask β appending a write command with a mask to the CMDQ packet π
no cap, that's the whole NAME section, we move.
πΈ SYNOPSIS πΈ
int cmdq_pkt_write_mask (struct cmdq_pkt *pkt , u8 subsys , u16 offset ,
u32 value , u32 mask );
that's it. that's the signature. it returns an int, she's giving "I might fail and I'll tell you why" energy π
π¦ ARGUMENTS π¦
pktβ the CMDQ packet π literally the packet you're stuffing this command into.subsysβ the CMDQ sub system code π₯ it's au8, so keep it cute and small.offsetβ register offset from CMDQ sub system β¨ au16, iykyk.valueβ the specified target register value π this is the actual number you want in there.maskβ the specified target register mask π the mask that decides which bits ofvalueactually get to be main character.
β RETURN β
0 for success π«Ά otherwise the error code is returned β so like, check it, don't just vibe past it π
fr fr: 0 means slay, anything else means something went sideways and you should look at the error code.
π§ SEE ALSO π§
Kernel file ./include/linux/soc/mediatek/mtk-cmdq.h π β go read it, it's giving source of truth.
then the whole friend group, and yes we're listing every single one because the original said so:
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_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 whole page, bestie π
this cutie lives at ./include/linux/soc/mediatek, dated October 2026, and she answers to cmdq_pkt_write_mask(9) β mwah, go write some masked registers πβ¨
π¦ 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