get_req_from_tcs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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