rtas_ibm_suspend_me(9)
π rtas_ibm_suspend_me β like, the Kernel API Manual page, bestie β¨
Okay so we're deep in the Kernel API Manual today and the star of the show is rtas_ibm_suspend_me(9). Buckle up π
πΈ NAME πΈ
rtas_ibm_suspend_me β the function that calls ibm,suspend-me to suspend the LPAR. That's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
int rtas_ibm_suspend_me (int *fw_status );
β¨ ARGUMENTS β¨
fw_statusβ bestie, the RTAS call status gets dropped right here π« β but only if it's notNULL, okay? Don't come for me if you passNULLand get nothing back, iykyk.
π DESCRIPTION π
So here's the tea β β rtas_ibm_suspend_me should only be called on a CPU that has received H_CONTINUE from the H_JOIN hcall. Literally only that one. Every other active CPU should be waiting to return from H_JOIN β like they're all queued outside the club and your CPU is the one on the list π«Ά.
Also, and this is the important part: rtas_ibm_suspend_me may suspend execution of the OS indefinitely ππ like, for real, no cap. So callers need to take appropriate measures upon return β resetting watchdog facilities, that kind of thing. Don't just roll over and go back to sleep, mmkay? π₯
Callers may choose to retry this call if fw_status is RTAS_THREADS_ACTIVE. That's your lil green flag to try again π
π RETURN π
0β slay! π The partition has resumed from suspend, possibly after migration to a different host. Iconic behaviour tbh.-ECANCELEDβ the operation was aborted. It's giving "we don't talk about it" π-EAGAINβ there were other CPUs not inH_JOINat the time of the call. Rude of them honestly.-EBUSYβ some other condition prevented the suspend from succeeding. Vibe check: failed π-EIOβ hardware/platform error. Not the moment, not the vibe, we don't stan π€
π SEE ALSO π
Go read the kernel file ./arch/powerpc/kernel/rtas.c (yes, the whole thing, it's giving main character energy) plus these besties:
struct rtas_function(9)rtas_function_token(9)rtas_call_unlocked(9)rtas_call(9)rtas_busy_delay_time(9)rtas_busy_delay(9)rtas_activate_firmware(9)get_pseries_errorlog(9)
β Real talk though: this call can hang your whole OS indefinitely and only works on the CPU that got H_CONTINUE. Treat it with the respect it deserves, bestie. π₯
Okay that's the whole page, mwah π β brought to you from ./arch/powerpc/kernel, dated October 2026, and it says rtas_ibm_suspend_me(9) right there at the bottom like a little signature. 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