cmdq_pkt_write_s_mask_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 fr
  • high_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:


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