pm_op(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pm_op(9) β€” your Kernel API Manual moment πŸŽ€

Okay so this is pm_op(9) from the Kernel API Manual, and it's here to answer the extremely specific question: which PM operation do I return for this PM event? No cap, that's the whole assignment. ✨


🌸 NAME 🌸

pm_op β€” Return the PM operation appropriate for given PM event. That's the function, that's the vibe, and she ate. πŸ’–


✨ SYNOPSIS ✨

pm_callback_t pm_op (const struct dev_pm_ops *ops , pm_message_t state
);

πŸŽ€ ARGUMENTS πŸŽ€

  • ops β€” PM operations to choose from. Your little menu of PM ops, basically. πŸ“
  • state β€” PM transition of the system being carried out. That's the event situation, iykyk. πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

The og page points at the kernel file ./drivers/base/power/main.c, and then it literally introduces the whole friend group. Peep these pages, bestie: πŸ‘‘


Brought to you by ./drivers/base/power, dated October 2026, and signed pm_op(9) β€” stay powered, bestie! πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from