store_hibernate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ 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 β€” the device_attribute struct, 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 πŸ¦‹

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