swsusp_check(9)
π swsusp_check(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a lil function called swsusp_check, and honestly? she's the vibe check before the actual hibernation party even starts. π
πΈ NAME πΈ
swsusp_check β literally opens the resume device and checks for the swsusp signature. that's it, that's the whole job. π
π¦ SYNOPSIS π¦
int swsusp_check (bool exclusive );
β¨ ARGUMENTS β¨
exclusiveβ open the resume device exclusively. like, no sharing, she's taken. π
π RETURN π
Returns 0 if a valid image is found, and a negative error code otherwise. so: zero = slay, negative = not slay π
π SEE ALSO π
Kernel file ./kernel/power/swap.c β and her besties swsusp_write(9), swsusp_read(9), swsusp_close(9), swsusp_unmark(9). the whole squad, fr fr π«Ά
ngl, this page is short but she ate. check the signature, don't skip the vibe check, periodt. πβ¨
and that's the whole page, bestie β brought to you from ./kernel/power, dated October 2026, straight outta the Kernel API Manual. mwah ππ§π
π¦ 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