dpm_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ dpm_suspend(9) β€” like, the Kernel API Manual one, bestie

Okay so picture this: it's dpm_suspend, section 9 of the Kernel API Manual, and it's literally the girl who goes around telling every single device to go night-night. Let's get into it ✨


πŸŒ™ NAME

dpm_suspend β€” runs the "suspend" callbacks for all non-sysdev devices. That's it, that's the whole job πŸ’…


πŸŽ€ SYNOPSIS

int dpm_suspend (pm_message_t state );

🫢 ARGUMENTS

  • state β€” the PM transition of the system that's being carried out. Like, the whole mood of the suspend, packaged up and passed along 🌸

πŸ”₯ SEE ALSO

First up, the source of truth lives in the kernel file ./drivers/base/power/main.c β€” go read her, she's iconic πŸ‘‘

And then the whole friend group, in order, no cap:


Bestie note: the return type is int β€” so yeah, she does report back. Check your return value, fr fr πŸ’–

And that's the page, mwah πŸ˜­πŸ’œ It's from ./drivers/base/power, dated October 2026 β€” so like, future girl summer. Go forth and suspend, you've got this! πŸ¦‹πŸŒˆβ­

πŸ“¦ where this page comes from