__pm_runtime_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __pm_runtime_idle(9) πŸ’–

Okay bestie, welcome to the Kernel API Manual page for __pm_runtime_idle 🫢 This is the runtime-idle entry point, and we're gonna get into it.


✨ NAME ✨

__pm_runtime_idle β€” entry point for runtime idle operations. Periodt ✨

🌸 SYNOPSIS 🌸

int __pm_runtime_idle (struct device *dev , int rpmflags );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you're sending the idle notification for πŸ’–
  • rpmflags β€” flag bits 🚩

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜•: if the RPM_GET_PUT flag is set, this routine decrements the device's usage count. If that count is larger than zero, it returns immediately. If it becomes negative, it logs a warning, increments the count, and returns an error. Then it carries out an idle notification, and that notification can be either synchronous or asynchronous. Slay πŸ’…

This routine may be called in atomic context if the RPM_ASYNC flag is set, or if pm_runtime_irq_safe has been called. Those are the conditional vibes, so keep them in mind πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯


And that's the whole page, bestie 🫢 It's from the Kernel API Manual, source/version ./drivers/base/power, dated October 2026, for __pm_runtime_idle(9). Slay πŸ’…βœ¨

πŸ“¦ where this page comes from