swsusp_show_speed(9)
π 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 betweenstartandstop. 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 β
- Kernel file
./kernel/power/hibernate.cβ the icon, the blueprint, the main character π pm_hibernation_mode_is_suspend(9)hibernation_set_ops(9)platform_begin(9)platform_end(9)platform_pre_snapshot(9)platform_leave(9)platform_finish(9)platform_pre_restore(9)platform_restore_cleanup(9)platform_recover(9)create_image(9)hibernation_snapshot(9)resume_target_kernel(9)hibernation_restore(9)hibernation_platform_enter(9)power_down(9)hibernate(9)hibernate_quiet_exec(9)software_resume_initcall(9)
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
- 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