__rpm_callback(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __rpm_callback(9) ✨

okay so bestie, we're in the Kernel API Manual today and this page is literally all about one little function that makes a runtime PM callback happen for a device. it's giving "middle management of power management" and honestly? we're obsessed πŸŽ€


🌸 NAME 🌸

__rpm_callback β€” run a given runtime PM callback for a given device. that's it, that's the whole vibe. it runs the thing. for the device. slay πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

look at that signature. it returns an int, it takes a function pointer and a device pointer, and no, you cannot skip the struct. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • cb β€” the runtime PM callback you actually want to run. it's a function pointer of type int (*cb)(struct device *). this is the main character of the operation πŸ”₯
  • dev β€” the device to run the callback for. the callback gets handed this bad boy. struct device *, exactly like it says 🫢

πŸ’– SEE ALSO πŸ’–

okay so here's the whole friend group, and yes they all showed up:

like i said. everyone was invited. no gatekeeping here πŸ’œ


✨ that's the whole page, bestie ✨ big kiss from the ./drivers/base/power girlies, dated October 2026 β€” go run some callbacks, you're gonna eat πŸ’…πŸ”₯

πŸ“¦ where this page comes from