device_pm_sleep_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– device_pm_sleep_init β€” bestie's guide to the Kernel API Manual πŸ’–

okay so real talk, we're in the Kernel API Manual today, and the star of the show is device_pm_sleep_init. it's one of those tiny-but-load-bearing functions that the power management girlies could not function without. let's get into it ✨


🌸 NAME 🌸

device_pm_sleep_init β€” initializes the system suspend-related device fields. that's the whole job. she's a setup girlie, and she does it well πŸŽ€


✨ SYNOPSIS ✨

void device_pm_sleep_init(struct device *dev);

literally one call. no tricks, no secret extra params, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device object being initialized. that's it, that's the whole input. hand her a struct device * and she handles the rest πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

bestie there are so many cousins at this family reunion, I'm not even kidding. all of these are (9) kernel API pages, so come through and vibe check them:

and the actual kernel file she lives in:

  • ./drivers/base/power/main.c

like I said. entire friend group. iconic behaviour honestly 🌈


ngl, the original page doesn't list any return value, errors, or flags for this one β€” it's a void function with a single argument and a single purpose. don't go looking for drama that isn't there, bestie πŸ™ˆ

🌸 okay that's the whole page, mwah πŸ’– this cutie came to you from device_pm_sleep_init(9), sourced straight out of ./drivers/base/power, dated October 2026 β€” go take a nap, you've earned it πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from