find_device_devfreq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 find_device_devfreq(9) 🌸

okay so this is a page from the Kernel API Manual and it's literally about one tiny function that goes hunting for a devfreq struct using a device pointer. bestie, it's a lookup function, it's not deep, but it is iconic πŸ’…


✨ NAME ✨

find_device_devfreq β€” find devfreq struct using device pointer πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct devfreq * find_device_devfreq (struct device *dev );

like yes, that's the whole signature, she's simple and she serves 🌈


πŸ“ ARGUMENTS πŸ“

  • dev β€” device pointer used to lookup device devfreq. that's the thing you're searching for, she's your little key πŸ”‘

πŸ’– DESCRIPTION πŸ’–

So the vibe here is: it searches the list of device devfreqs and returns the matched device's devfreq info. that's it, that's the function 🫢

⚠️ no cap, important: devfreq_list_lock should be held by the caller. like, you gotta hold the lock before you call this. it does not do it for you, bestie. that's on you 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/devfreq/devfreq.c and honestly the whole devfreq friend group πŸ’œ:


and that's the whole page, mwah πŸ’‹ this little icon lives in ./drivers/devfreq, dated October 2026, and yes she's still out here being find_device_devfreq(9) β€” go hold that lock and slay ✨

πŸ“¦ where this page comes from