__tcs_set_trigger(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __tcs_set_trigger πŸ’…

okay so this page lives in the Kernel API Manual and it's all about __tcs_set_trigger β€” the little function that starts a transfer on a TCS, or un-sets the trigger on a TCS you borrowed. no cap, that's literally the whole NAME section. πŸŽ€


✨ SYNOPSIS ✨

void __tcs_set_trigger (struct rsc_drv *drv , int tcs_id , bool trigger );

that's it, that's the whole signature. void return, no drama, she just does the thing. 🫢


🌸 ARGUMENTS 🌸

  • drv β€” the controller. the big boss. the main character, honestly. πŸ‘‘
  • tcs_id β€” the global ID of this TCS. global, bestie, not local. don't get it twisted. πŸ¦‹
  • trigger β€” if true, then untrigger/retrigger. if false, then just untrigger. that's the whole vibe check right there. πŸ’…

πŸ’– DESCRIPTION πŸ’–

so in the normal case β€” like, the everyday, nothing-weird-happening case β€” we only ever call this with "trigger=true" to start a transfer. and what that does is: it un-triggers/disables the TCS from the last transfer, then triggers/enables it for this transfer. out with the old, in with the new. slay. ✨

now, the plot twist 🌈: if we borrowed a wake TCS for an active-only transfer, we'll also call this function with "trigger=false" β€” and in that case it's just doing the un-trigger/disable, nothing else β€” before we go using that TCS for wake purposes again. she's being handed back, freshly un-triggered. responsible! 🧚

⚠️ important note, don't skip this one: the AP is only in charge of triggering active-only transfers. the AP never triggers sleep/wake values using this function. never ever. not even once. 😀

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./drivers/soc/qcom/rpmh-rsc.c is where all the magic lives β€” here's the whole squad, and yes you need all of them:

iykyk, this is a whole friend group πŸ’œ


okay that's the page!! mwah πŸ’‹ this one came from ./drivers/soc/qcom, dated October 2026, and it's filed under __tcs_set_trigger(9) β€” go forth and trigger responsibly, bestie πŸ“πŸ’«

πŸ“¦ where this page comes from