rpmh_rsc_send_data(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

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


๐Ÿ’– 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