__pm_runtime_barrier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __pm_runtime_barrier β€” the Kernel API Manual, but make it cute ✨

okay so bestie, we're in __pm_runtime_barrier(9) territory today and honestly? it's giving "bouncer at the club, but for power management requests" 🫢


🌸 NAME 🌸

__pm_runtime_barrier β€” Cancel pending requests and wait for completions. periodt. πŸ’…


✨ SYNOPSIS ✨

void __pm_runtime_barrier (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to handle. that's it, that's the whole argument. main character energy fr fr πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: this function flushes all pending requests for the device from pm_wq, and then it waits for all runtime PM operations involving the device that are currently in progress to complete. like, it literally stands there with its arms crossed until everyone's done. no cap. 😭

⚠️ bestie listen to me β€” Should be called under dev->power.lock with interrupts disabled. this is not a suggestion, it's the rule. respect the lock. πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/base/power/runtime.c

and the whole friend group, in this exact order, no skipping anyone (iykyk):


πŸ’€ ngl that SEE ALSO list is literally the entire runtime PM extended universe. ate and left no crumbs. πŸ‘‘

okay that's the whole page bestie, you're officially fluent in runtime barriers πŸ’œ

this iconic little page lives in ./drivers/base/power, dated October 2026, and it's part of the Kernel API Manual β€” slay, bye! πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from