__tcs_set_trigger(9)
π __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β iftrue, then untrigger/retrigger. iffalse, 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:
tcs_invalidate(9)rpmh_rsc_invalidate(9)get_tcs_for_msg(9)get_req_from_tcs(9)enable_tcs_irq(9)tcs_tx_done(9)__tcs_buffer_write(9)check_for_req_inflight(9)find_free_tcs(9)claim_tcs_for_req(9)rpmh_rsc_send_data(9)find_slots(9)rpmh_rsc_write_ctrl_data(9)rpmh_rsc_ctrlr_is_busy(9)rpmh_rsc_write_next_wakeup(9)rpmh_rsc_cpu_pm_callback(9)rpmh_rsc_pd_callback(9)
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
- 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