store_hibernate(9)
πΎ store_hibernate(9) β the Kernel API Manual, bestie edition πΎ
okay so you're in the store_hibernate(9) girlies club now, welcome, this is the Kernel API Manual and today we're learning how to put a whole partition to sleep π΄β¨
πΈ NAME πΈ
store_hibernate β initiate partition hibernation, that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
ssize_t store_hibernate (struct device *dev , struct device_attribute
*attr , const char *buf , size_t count );
literally the whole function signature, copied exactly, no cap π«Ά
π ARGUMENTS π
devβ the subsys root device, aka the main character πattrβ thedevice_attributestruct, it's giving paperwork but make it kernel π¦bufβ the buffer, standard buffer behavior, love that for it πcountβ the buffer size, yes queen, tell me how big π
π₯ DESCRIPTION π₯
kay so here's the tea β β you write the stream ID that you received from the HMC into this file, and that's what triggers hibernating the partition. that's the whole move. no extra steps, no secret handshake, just write the stream ID and the partition goes night-night π΄β¨
Return value: the number of bytes printed to the buffer, or other on failure π β so if the number looks sus, something went wrong, ngl.
π¦ SEE ALSO π¦
- Kernel file
./arch/powerpc/platforms/pseries/suspend.cβ go read the source, it's right there, iykyk π pseries_suspend_begin(9)pseries_suspend_enter(9)show_hibernate(9)pseries_suspend_sysfs_register(9)pseries_suspend_init(9)
the whole friend group fr fr, go say hi to all of them π«Άπ
okay that's the page bestie!! this one's from ./arch/powerpc/platforms/pseries, dated October 2026, and the manpage itself is like store_hibernate(9) β slay, go hibernate something responsibly π
β¨π
π¦ 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