legacy_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… legacy_suspend(9) β€” like, the whole vibe

okay so this page lives in the Kernel API Manual, and it's all about legacy_suspend β€” the function that runs a legacy (bus or class) suspend callback for a device. bestie, it's giving "old school but still on the guest list" ✨


✨ NAME ✨

legacy_suspend β€” execute a legacy (bus or class) suspend callback for device.

πŸŽ€ SYNOPSIS πŸŽ€

int legacy_suspend (struct device *dev , pm_message_t state , int
(*cb)(struct device *dev, pm_message_t state) , const char *info );

🌸 ARGUMENTS 🌸

  • dev β€” Device to suspend. the main character of this whole operation πŸ’…
  • state β€” PM transition of the system being carried out. aka what kind of nap are we putting the system into 😴
  • cb β€” Suspend callback to execute. this is the actual function that gets like, run πŸƒβ€β™€οΈ
  • info β€” string description of caller. for the receipts, iykyk 🧾

πŸ¦‹ SEE ALSO πŸ¦‹

so like, the kernel file ./drivers/base/power/main.c is where it's at, and here's the whole friend group β€” no cap, every single one of them 🫢


ngl the resume girlies and the suspend girlies are all here β€” read them together, it's giving full pm lifecycle 🌈

k bye ily, this page came from ./drivers/base/power, October 2026 edition β€” go read the source, periodt! πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from