rpm_callback(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ rpm_callback(9) β€” the kernel API manual page, bestie edition πŸ¦‹

okay so this is rpm_callback, a page from the Kernel API Manual, and honestly it's a short one but it matters, so grab your iced coffee and let's go πŸ’…


✨ NAME ✨

rpm_callback β€” run a given runtime PM callback for a given device. that's it. that's the whole job. iconic minimalism πŸŽ€


🌸 SYNOPSIS 🌸

int rpm_callback (int (*cb)(struct device *) , struct device *dev );

like, you hand it a callback and a device, and it returns an int. simple. clean. slay ✨


πŸ’– ARGUMENTS πŸ’–

  • cb β€” the runtime PM callback you want to run. it's typed as int (*cb)(struct device *), so yeah, it takes a struct device * and gives you back an int. that's your main character function pointer right there πŸ‘‘
  • dev β€” the device you're running that callback for. the one getting the whole runtime PM treatment. give it what it deserves 🫢

πŸ”₯ SEE ALSO πŸ”₯

so there's a lot of friends in this group chat, and ngl you should probably meet all of them:

like, that's the whole squad. read them, love them, iykyk πŸ’€βœ¨


bestie reminder: this page is short on purpose, so don't go inventing extra behaviour for it. everything above is literally everything the page says. no cap 🧚

and that's the wrap! this masterpiece came from ./drivers/base/power and it's dated October 2026 β€” so go forth, run your callbacks, and stan runtime PM responsibly πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from