cmdq_pkt_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is cmdq_pkt_poll(9) from the Kernel API Manual, and it's giving β€œappend a polling command to the CMDQ packet” energy ✨. What it does: it asks GCE to execute an instruction that waits for a specified hardware register to check for the value w/o mask. 🫢

⚠️ Blocking warning, no cap: all GCE hardware threads will be blocked by this instruction. Every single one. So like, plan around that, bestie. 😭

🌸 SYNOPSIS 🌸

here's the signature, exactly as it is:

int cmdq_pkt_poll (struct cmdq_pkt *pkt , u8 subsys , u16 offset , u32 value );

πŸŽ€ ARGUMENTS πŸŽ€

  • pkt β€” the CMDQ packet. the packet bestie you're appending to.
  • subsys β€” the CMDQ sub system code. yep, that's the subsystem code.
  • offset β€” register offset from CMDQ sub system. literally the offset from the CMDQ sub system.
  • value β€” the specified target register value. the value you're checking for.

✨ RETURN ✨

0 for success; else the error code is returned. so 0 is the slay outcome, anything else is the error code coming back at you. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux/soc/mediatek/mtk-cmdq.h β€” that's the file, iykyk.

the whole CMDQ function bestie squad:

okay bye bestie! πŸ’– source/version: ./include/linux/soc/mediatek; date: October 2026; manual page: cmdq_pkt_poll(9) ✨

πŸ“¦ where this page comes from