swsusp_read(9)
πΈ swsusp_read(9) β a Kernel API Manual moment πΈ
okay so this is a page from the Kernel API Manual, bestie, and it's literally all about swsusp_read. buckle up, it's short but it's iconic π
β¨ NAME β¨
swsusp_read β read the hibernation image. that's it. that's the whole job. she wakes your suspended-to-disk self back up π«Ά
π¦ SYNOPSIS π¦
int swsusp_read (unsigned int *flags_p );
π ARGUMENTS π
flags_pβ so this is a pointer, right, and the flags that got passed by the "frozen" kernel in the image header should be written into this memory location. yes, the frozen kernel. she's frozen, she's chilling, she left you her flags in the image header, and you're writing them right here into this spot in memory. no cap π
π₯ RETURN π₯
0on success π- a negative error code on failure π
π SEE ALSO π
- the Kernel file
./kernel/power/swap.cβ that's where all the swap business lives, iykyk swsusp_write(9)swsusp_check(9)swsusp_close(9)swsusp_unmark(9)
like, go read the whole friend group honestly, they all hang out together β
ngl bestie, if you get a negative number back, that's a fail β don't @ me, that's just what the return value says π
mwah, kisses, bye π this little page came from ./kernel/power, dated October 2026, and it's filed under swsusp_read(9) β 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