cmdq_pkt_jump_rel(9)
π« 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 functionoffsetβ 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 bycmdq_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:
cmdq_dev_get_client_reg(9)cmdq_mbox_create(9)cmdq_mbox_destroy(9)cmdq_pkt_create(9)cmdq_pkt_destroy(9)cmdq_pkt_write(9)cmdq_pkt_write_pa(9)cmdq_pkt_write_subsys(9)cmdq_pkt_write_mask(9)cmdq_pkt_write_mask_pa(9)cmdq_pkt_write_mask_subsys(9)cmdq_pkt_write_s(9)cmdq_pkt_write_s_mask(9)cmdq_pkt_write_s_value(9)cmdq_pkt_write_s_mask_value(9)cmdq_pkt_mem_move(9)cmdq_pkt_wfe(9)cmdq_pkt_acquire_event(9)cmdq_pkt_clear_event(9)cmdq_pkt_set_event(9)cmdq_pkt_poll(9)cmdq_pkt_poll_mask(9)cmdq_pkt_logic_command(9)cmdq_pkt_assign(9)cmdq_pkt_poll_addr(9)cmdq_pkt_jump_abs(9)cmdq_pkt_jump_rel_temp(9)cmdq_pkt_eoc(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms