rpmh_rsc_send_data(9)
๐
rpmh_rsc_send_data(9) โ Kernel API Manual, group-chat edition ๐
okay so this is the page for rpmh_rsc_send_data(9) from the Kernel API Manual. Buckle up, bestie โ it's giving โtiny function, very specific rules.โ ๐ฆ
โจ NAME โจ
rpmh_rsc_send_data โ write / trigger an active-only message. That's the whole name vibe: write it, trigger it, active-only, periodt. ๐
๐ธ SYNOPSIS ๐ธ
The signature is literally this, character-for-character, no edits:
int rpmh_rsc_send_data (struct rsc_drv *drv , const struct tcs_request *msg );
๐ ARGUMENTS ๐
drvโ the controller. That's the controller, bestie. ๐ฎmsgโ the data to be sent. That's the data-to-be-sent vibe. ๐ฆ
๐ NOTES ๐
- Only for
"ACTIVE_ONLY"โ no cap. The limitations of this function literally do not make sense for sleep/wake cases, so this is not the sleepy-time one. ๐ด๐ซ - To do the transfer, we grab a whole TCS for ourselves โ we do not try to share. If there are none available, we'll wait indefinitely for a free one. โณ
- This function will not wait for the commands to be finished; it only waits for data to be programmed into the RPMh. See
rpmh_tx_done, which will be called when the transfer is fully complete. โ - This function must be called with interrupts enabled. If the hardware is busy doing someone else's transfer, we need that transfer to fully finish so that we can have the hardware, and to fully finish it needs the interrupt handler to run. If interrupts are set to run on the active CPU, this can never happen if interrupts are disabled. ๐จ
๐ซถ RETURN ๐ซถ
0 on success, -EINVAL on error. That's the return contract: 0 = slay, -EINVAL = nope. ๐
๐ฆ SEE ALSO ๐ฆ
Kernel file: ./drivers/soc/qcom/rpmh-rsc.c โ and here's the whole friend group, bestie:
tcs_invalidate(9)rpmh_rsc_invalidate(9)get_tcs_for_msg(9)get_req_from_tcs(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)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)
๐ cute little sign-off: source/version is ./drivers/soc/qcom, date is October 2026, and this absolute icon is rpmh_rsc_send_data(9). Go off and trigger those active-only messages 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