cmdq_pkt_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cmdq_pkt_create(9) β€” like, the CMDQ packet maker πŸ’–

okay so bestie, welcome to another ✨Kernel API Manual✨ page β€” yes this is cmdq_pkt_create(9) from the one and only Kernel API Manual, and no I will not be normal about it.


πŸŽ€ NAME πŸŽ€

cmdq_pkt_create β€” literally makes you a CMDQ packet, that's the whole vibe 🫢


✨ SYNOPSIS ✨

int cmdq_pkt_create (struct cmdq_client *client , struct cmdq_pkt *pkt ,
size_t size );

three args, one int out the door, we love a clean signature πŸ’…


🌸 ARGUMENTS 🌸

  • client β€” the CMDQ mailbox client, your main character πŸŽ€
  • pkt β€” the CMDQ packet itself, the lil guy in question πŸ¦‹
  • size β€” how big the CMDQ buffer needs to be, the required one fr fr

πŸ’€ RETURN πŸ’€

0 means slay, it worked. anything else and you get an error code back instead β€” not iconic, but that's how it is 😭


🌈 SEE ALSO 🌈

the kernel file where all the lore lives:

./include/linux/soc/mediatek/mtk-cmdq.h

and the whole friend group, no gatekeeping here bestie πŸ‘‘

that's the entire roster and yes I listed every single one, because I keep every detail πŸ’œ


okay that's the whole page!! ty for coming to my ted talk, this came from ./include/linux/soc/mediatek and the date stamp says October 2026, so mark your calendars bestie πŸ—“οΈβ­ mwah πŸ’‹

πŸ“¦ where this page comes from