devfreq_event_get_event(9)
π devfreq_event_get_event β straight out of the Kernel API Manual β¨
okay so bestie, picture this: you've got a devfreq-event device doing its whole little performance-monitoring thing, and you need the actual numbers out of it. that's this function. it's the little goblin that hands you the receipts. π§Ύ
πΈ NAME
devfreq_event_get_event β grab the {load|total}_count from a devfreq-event dev. yes, those curly braces are doing their whole "either one, babes" thing and they ate. π
β¨ SYNOPSIS
int devfreq_event_get_event (struct devfreq_event_dev *edev , struct
devfreq_event_data *edata );
π ARGUMENTS
edevβ the devfreq-event device. your main character, the one you're here for. π«Άedataβ the calculated data of the devfreq-event device. this is where the tea gets poured. π
π¦ DESCRIPTION
lowkey important heads-up: this function gets the calculated event data from the devfreq-event dev after stoping the progress of the whole sequence of devfreq-event dev. (their spelling, not mine π )
so like β numbers first, whole sequence paused. that's the vibe. don't skip that part, it's literally the one note they gave us. π
ngl, "after stoping the progress of whole sequence" is doing a lot of heavy lifting in one sentence, but the point is clear: you only pull the calculated data once the entire devfreq-event dev sequence has been stopped. periodt.
π SEE ALSO
- Kernel file
./drivers/devfreq/devfreq-event.cβ the source, go read it iykyk π devfreq_event_enable_edev(9)devfreq_event_disable_edev(9)devfreq_event_is_enabled(9)devfreq_event_set_event(9)devfreq_event_reset_event(9)devfreq_event_get_edev_by_phandle(9)devfreq_event_get_edev_count(9)devfreq_event_add_edev(9)devfreq_event_remove_edev(9)devm_devfreq_event_add_edev(9)devm_devfreq_event_remove_edev(9)
that's the whole page bestie, go forth and read your counters πβ
this little love letter came to you from ./drivers/devfreq, dated October 2026 β no cap, that's the version and the date, screenshot it ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms