swsusp_show_speed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– swsusp_show_speed(9) πŸ’–

ok so this is a page straight out of the Kernel API Manual, and honestly? it's a little cutie. it's giving "stopwatch for hibernation" energy. bestie, let's get into it ✨


🌸 NAME 🌸

swsusp_show_speed β€” literally just prints the time elapsed between two events during hibernation. that's it. that's the whole job. and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void swsusp_show_speed (ktime_t start , ktime_t stop , unsigned nr_pages
, char *msg );

no cap, that's the exact signature, don't come for me about the spacing, i copied it character for character 🫢


πŸŽ€ ARGUMENTS πŸŽ€

ok so four things go in, and here's what each one is doing:

  • start β€” the starting event. like, the moment it all began. the beginning of the story πŸŒ…
  • stop β€” the final event. the end credits. the part where we look back and go "wow, that was a lot" 😭
  • nr_pages β€” the number of memory pages processed between start and stop. so like, how much actual work happened in that window of time 🧚
  • msg β€” an additional diagnostic message to print. your little custom caption on the vibes 🌈

⭐ SEE ALSO ⭐

like, the whole friend group fr fr. go read them too, iykyk πŸ’œ


ok that's the whole page bestie. nothing scary, no warnings, no bugs listed β€” just a tidy little speed-printer. slay. periodt. πŸ“

and that's a wrap! this gem lives in ./kernel/power and this particular version is dated October 2026, page swsusp_show_speed(9). mwah, go forth and hibernate responsibly πŸ’–πŸ’«

πŸ“¦ where this page comes from