cmdq_dev_get_client_reg(9)
π cmdq_dev_get_client_reg β the Kernel API Manual glow-up π
okay so bestie, this one is from the Kernel API Manual and it's called cmdq_dev_get_client_reg(9) and honestly? it's a little helper that does one thing and does it cute. let's get into it π
β¨ NAME β¨
cmdq_dev_get_client_reg β literally parses the cmdq client reg from the device node of a CMDQ client. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int cmdq_dev_get_client_reg (struct device *dev , struct cmdq_client_reg
*client_reg , int idx );
yes it's giving three-arguments-and-a-dream, and yes we're getting into each one π
π«Ά ARGUMENTS π«Ά
devβ the device of the CMDQ mailbox client. like, whose node are we even reading from, bestie? this one. πclient_regβ a CMDQ client reg pointer. the spot where the parsed reg gets dropped off. πidxβ the index of the desired reg. not any reg, the one you want. main character reg energy. β
π₯ RETURN π₯
0 for success; else the error code is returned. so bestie, check your return value, 0 is a slay and anything else is the kernel telling you "no π".
π DESCRIPTION π
Help CMDQ client parse the cmdq client reg from the device node of the CMDQ client. that's it, that's the function π§ β it does the node-reading homework so your client doesn't have to. no cap.
π SEE ALSO π
Kernel file ./include/linux/soc/mediatek/mtk-cmdq.h β and the whole friend group, fr fr:
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(9)cmdq_pkt_jump_rel_temp(9)cmdq_pkt_eoc(9)
and that's the page, bestie π β brought to you from ./include/linux/soc/mediatek, dated October 2026, filed under cmdq_dev_get_client_reg(9). iykyk π
β¨
π¦ 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