rpmh_rsc_pd_callback(9)
Hiii bestie π welcome to this Kernel API Manual page for rpmh_rsc_pd_callback(9) β yes, the function that checks if any of the AMCs are busy. Lowkey iconic, ngl. Letβs get into it β¨
πΈ NAME πΈ
rpmh_rsc_pd_callbackβ check if any of the AMCs are busy.
β¨ SYNOPSIS β¨
int rpmh_rsc_pd_callback (struct notifier_block *nfb , unsigned long
action , void *v );
π ARGUMENTS π
nfbβ pointer to the genpd notifier block instruct rsc_drv. Thatβs the hookup, bestie.actionβGENPD_NOTIFY_PRE_OFF,GENPD_NOTIFY_OFF,GENPD_NOTIFY_PRE_ONorGENPD_NOTIFY_ON. Pick your notification moment.vβ unused. Literally just vibing there.
π DESCRIPTION π
Okay so this function is given to dev_pm_genpd_add_notifier so we can be informed about when cluster-pd is going down. When cluster go down, we know no more active transfers will be started, so we write sleep/wake sets. This function gets called from cpuidle code paths and also at system suspend time. The way that itβs always on call is very main character energy.
If AMCs are not busy then it writes cached sleep and wake messages to TCSes. The firmware then takes care of triggering them when entering deepest low power modes. Periodt.
π₯ RETURN π₯
NOTIFY_OKβ success.NOTIFY_BADβ failure.
Those are the two moods, and yes, failure is not the vibe.
π¦ SEE ALSO π¦
Kernel file ./drivers/soc/qcom/rpmh-rsc.c β and the whole friend group is 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), 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). iykyk π
Ok bye bestie π«Ά this iconic page is from source ./drivers/soc/qcom, dated October 2026, and itβs literally the rpmh_rsc_pd_callback(9) era. πβ¨
π¦ 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