swsusp_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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