cmdq_pkt_jump_rel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« NAME πŸ’«

ok so welcome to the cmdq_pkt_jump_rel(9) page bestie, this is the kernel-api manual for real πŸ’…

cmdq_pkt_jump_rel β€” this one appends a jump command onto the CMDQ packet, like you're literally sliding a note into the packet that asks GCE to run an instruction which changes the current thread PC to a physical address with a relative offset ✨ also heads up: the target address should contain more instruction, no cap 🫢


🌸 SYNOPSIS 🌸

int cmdq_pkt_jump_rel (struct cmdq_pkt *pkt , s32 offset , u8 shift_pa
);

bestie the signature is right there in all its three-line glory, we love a dramatic line break πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • pkt β€” the CMDQ packet πŸ’– that's the thing we're appending to, the main character of this whole function
  • offset β€” the relative offset of the target instruction buffer, measured from the current PC πŸ¦‹
  • shift_pa β€” the shift bits of the physical address inside the CMDQ instruction 🌈 and get this, you don't just make this number up: this value is got by cmdq_get_shift_pa πŸ‘‘

⭐ RETURN ⭐

0 for success; else the error code is returned 😭 so like, check it, don't just vibe past it


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./include/linux/soc/mediatek/mtk-cmdq.h πŸ“ and here's the whole friend group, every single one of them, not skipping a single bestie:

like, that's the entire group chat, go read them, iykyk πŸ’€

ok that's the whole page, mwah πŸ’‹ this came from ./include/linux/soc/mediatek and it's dated October 2026, so yeah, future-dated icon behavior πŸ‘‘ signed off, sealed, delivered, cmdq_pkt_jump_rel(9) periodt πŸ§šπŸ’œ

πŸ“¦ where this page comes from