cmdq_pkt_write_s_mask_value(9)
π cmdq_pkt_write_s_mask_value(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a little cmdq_pkt_write_s_mask_value moment and honestly? it's giving "packet queue but make it precise." no cap π
πΈ NAME πΈ
cmdq_pkt_write_s_mask_value β append a write_s command with a mask to the CMDQ packet, which writes a value to a physical address π
like. it writes. but masked. and to a physical address. periodt. π
π¦ SYNOPSIS π¦
int cmdq_pkt_write_s_mask_value (struct cmdq_pkt *pkt , u8
high_addr_reg_idx , u16 addr_low , u32 value , u32 mask );
that's the whole signature, character for character, no edits from me π«Ά
β¨ ARGUMENTS β¨
pktβ the CMDQ packet π this is the thing you're appending to, main character energy frhigh_addr_reg_idxβ an internal register ID that holds the high address of the pa (physical address, iykyk) π§addr_lowβ the low address of the pa πΈvalueβ the specified target value πmaskβ the specified target mask π
so yeah: register index gives you the high bits, addr_low gives you the low bits, and value + mask do the actual masked-write situation. slay. π₯
β RETURN β
returns 0 for success π₯³ otherwise the error code is returned π (so like, always check, bestie, don't just vibe past it)
π SEE ALSO π
the kernel file lives at ./include/linux/soc/mediatek/mtk-cmdq.h β go read it, it ate π
and here's the whole friend group, every single one, no skipping:
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_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)
ok that's the whole page, go forth and append your masked writes responsibly π«Άβ¨
sign-off time: this lil beauty comes from ./include/linux/soc/mediatek π¦ dated October 2026 πΈ and it's filed under cmdq_pkt_write_s_mask_value(9) π bye bestie, ily, read your man pages π
π¦ 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