cmdq_pkt_write_mask_subsys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a u8, 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. A u16, 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:

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