cmdq_pkt_write_mask_subsys(9)
π cmdq_pkt_write_mask_subsys β Kernel API Manual β¨
Okay bestie, so this is a page from the Kernel API Manual, and it's about cmdq_pkt_write_mask_subsys(9) β literally the function that appends a write command with a mask to the CMDQ packet, except it does it with subsys. Two for the price of one, no cap. π
πΈ NAME πΈ
cmdq_pkt_write_mask_subsys β append write command with mask to the CMDQ packet with subsys. That's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
int cmdq_pkt_write_mask_subsys (struct cmdq_pkt *pkt , u8 subsys , u32
pa_base , u16 offset , u32 value , u32 mask );
She takes six things and returns an int. Iconic signature, honestly. π«Ά
π ARGUMENTS π
pktβ the CMDQ packet. Your main character. Everything gets appended to her. πsubsysβ the CMDQ sub system code. It's au8, so keep it cute and small. βpa_baseβ unused parameter. Yep. She's there, she's in the signature, she does nothing. We still respect her. πoffsetβ register offset from CMDQ sub system. Au16, so mind your range. πΈvalueβ the specified target register value. This is the value. That's the whole job. πmaskβ the specified target register mask. The specified one. Not any other mask. π₯
π¦ RETURN π¦
0 for success; else the error code is returned. So like β zero means slay, anything else means go read your error code, bestie. π
π SEE ALSO π
The lore lives in the kernel file ./include/linux/soc/mediatek/mtk-cmdq.h β go read it, iykyk. π
And here's the whole friend group, fr fr:
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_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)
Lowkey a whole squad. Go say hi to all of them. π«Ά
β¨ and that's the page!! β¨ This lil beauty comes from ./include/linux/soc/mediatek, dated October 2026, and she's filed under cmdq_pkt_write_mask_subsys(9) forever. Bye bestie, go append some masked writes π
ππ
π¦ 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