get_req_from_tcs(9)
π get_req_from_tcs(9) β Kernel API Manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and it's about get_req_from_tcs, which lowkey has main character energy for like... three lines of code. let's get into it π¦
β¨ NAME β¨
get_req_from_tcs β grab back the stashed request that was xfering on the TCS you point at. yes, "xfering". that's the spelling. we respect it. π
πΈ SYNOPSIS πΈ
const struct tcs_request * get_req_from_tcs (struct rsc_drv *drv , int
tcs_id );
she takes two things and hands you back a const struct tcs_request *, no cap β¨
π ARGUMENTS π
drvβ the RSC controller. like, the whole controller situation π«Άtcs_idβ the global ID of this TCS. global, bestie. not the local one. don't come for me π₯
π DESCRIPTION π
so for ACTIVE_ONLY transfers, we want to call back into the client when the transfer finishes. iconic behaviour, honestly. to actually do that, we need the "request" that the client originally handed us β the way that we just can't do the callback without it π
this function grabs the request that we stashed when we started the transfer. she's a retriever. she fetched. πβ¨
and fr fr, this only makes sense for ACTIVE_ONLY transfers, because those are the only ones we track sending β like, the only ones we enable interrupts for, and the only ones we call back to the client for. anything else? not tracked, not our problem, not invited to the group chat π
β RETURN β
the stashed request. that's it. that's the whole return value. slay π
ngl if you were expecting more you're gonna be disappointed β she gives you the request and nothing else π
π SEE ALSO π
Kernel file ./drivers/soc/qcom/rpmh-rsc.c β and an absolutely stacked friend group of functions, all (9), all iconic:
tcs_invalidate(9)rpmh_rsc_invalidate(9)get_tcs_for_msg(9)__tcs_set_trigger(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)
and that's the whole page, bestie π«Ά this one came out of ./drivers/soc/qcom, dated October 2026, and yeah it's literally stamped get_req_from_tcs(9) at the bottom too. 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