cmdq_pkt_write_s_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cmdq_pkt_write_s_value β€” the Kernel API Manualβ„’, bestie edition ✨

okay so you're looking at cmdq_pkt_write_s_value(9) from the Kernel API Manual, and honestly? she's a lil baddie that does one thing and does it well. πŸŽ€


🌸 NAME 🌸

cmdq_pkt_write_s_value β€” appends a write_s command to the CMDQ packet, and that command writes a value to a physical address. that's the whole vibe. no cap. πŸ¦‹


✨ SYNOPSIS ✨

int cmdq_pkt_write_s_value (struct cmdq_pkt *pkt , u8 high_addr_reg_idx
, u16 addr_low , u32 value );

like yes that's a lot of args but we're gonna go through them one by one, bestie, don't panic πŸ’–


🫢 ARGUMENTS 🫢

  • pkt β€” the CMDQ packet itself. she's the main character here, everything gets appended to her πŸ’…
  • high_addr_reg_idx β€” the internal register ID that's holding the high address of the pa. yes, the high part lives in a register, that's just how she rolls ✨
  • addr_low β€” the low address of the pa. lowkey the other half of the address 😌
  • value β€” the specified target value. the actual thing you're writing. the moment. the icon πŸ‘‘

πŸ”₯ RETURN πŸ”₯

0 for success πŸŽ‰ β€” otherwise the error code comes back to you, so like… check it, bestie, don't just ignore her 😭


🌈 SEE ALSO 🌈

kernel file ./include/linux/soc/mediatek/mtk-cmdq.h β€” go read the source, iykyk πŸ“–

and the whole friend group, fr fr:

like that's the whole group chat, everyone showed up πŸ’€πŸ«Ά


lowkey reminder: pkt is a struct cmdq_pkt *, high_addr_reg_idx is a u8, addr_low is a u16, and value is a u32. keep those types exactly as they are, bestie, no "fixing" them πŸ™ˆ

and that's the page!! sourced from ./include/linux/soc/mediatek, dated October 2026, and she ate, no crumbs πŸ’…βœ¨πŸ“ bye bestie ily πŸ§šπŸ’œ

πŸ“¦ where this page comes from