dev_pm_genpd_get_hwmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dev_pm_genpd_get_hwmode β€” kernel API manual, bestie edition πŸŽ€

Okay so this is a page from the Kernel API Manual fam β€” it's dev_pm_genpd_get_hwmode(9) and honestly it's a little one but it matters. Let's go ✨


✨ NAME ✨

dev_pm_genpd_get_hwmode β€” gets the HW mode setting for the device, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dev_pm_genpd_get_hwmode (struct device *dev );

🌸 ARGUMENTS 🌸

  • dev β€” the device whose current HW-mode setting you want fetched. That's it, that's the whole vibe check 🫢

πŸ’– DESCRIPTION πŸ’–

So this helper function lets consumer drivers fetch the current HW mode setting of their device. Like, their device β€” you're peeking at your own stuff, not being nosy πŸ‘‘

The way this works is a whole trust situation: it is assumed that the users guarantee that the genpd wouldn't be detached while this routine is getting called. Like bestie, do NOT let it detach mid-call, that's the one rule πŸ™ˆ


⭐ RETURN ⭐

Returns the HW mode setting of device from SW cached hw_mode. That's the whole return, no cap πŸŽ€


🌈 SEE ALSO 🌈

Okay this list is literally a whole group chat, everyone's here, let me read it out πŸ“‹

That's the whole squad, iykyk πŸ’€βœ¨


Sign-off time bestie πŸŽ€ β€” this icon lives in ./drivers/pmdomain, dated October 2026. Mwah, go read your hw modes responsibly πŸ’–

πŸ“¦ where this page comes from