drivers/devfreq/devfreq-event.c
Source file repositories/reference/linux-study-clean/drivers/devfreq/devfreq-event.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/devfreq/devfreq-event.c- Extension
.c- Size
- 12293 bytes
- Lines
- 482
- Domain
- Driver Families
- Bucket
- drivers/devfreq
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/devfreq-event.hlinux/kernel.hlinux/err.hlinux/init.hlinux/export.hlinux/slab.hlinux/list.hlinux/of.h
Detected Declarations
function devfreq_event_enable_edevfunction devfreq_event_disable_edevfunction devfreq_event_is_enabledfunction devfreq_event_set_eventfunction devfreq_event_get_eventfunction devfreq_event_reset_eventfunction devfreq_event_get_edev_by_phandlefunction list_for_each_entryfunction devfreq_event_get_edev_countfunction devfreq_event_release_edevfunction devfreq_event_add_edevfunction devfreq_event_remove_edevfunction devm_devfreq_event_matchfunction devm_devfreq_event_releasefunction devm_devfreq_event_add_edevfunction devm_devfreq_event_remove_edevfunction name_showfunction enable_count_showfunction devfreq_event_initmodule init devfreq_event_initexport devfreq_event_enable_edevexport devfreq_event_disable_edevexport devfreq_event_is_enabledexport devfreq_event_set_eventexport devfreq_event_get_eventexport devfreq_event_reset_eventexport devfreq_event_get_edev_by_phandleexport devfreq_event_get_edev_countexport devfreq_event_add_edevexport devfreq_event_remove_edevexport devm_devfreq_event_add_edevexport devm_devfreq_event_remove_edev
Annotated Snippet
subsys_initcall(devfreq_event_init);
Annotation
- Immediate include surface: `linux/devfreq-event.h`, `linux/kernel.h`, `linux/err.h`, `linux/init.h`, `linux/export.h`, `linux/slab.h`, `linux/list.h`, `linux/of.h`.
- Detected declarations: `function devfreq_event_enable_edev`, `function devfreq_event_disable_edev`, `function devfreq_event_is_enabled`, `function devfreq_event_set_event`, `function devfreq_event_get_event`, `function devfreq_event_reset_event`, `function devfreq_event_get_edev_by_phandle`, `function list_for_each_entry`, `function devfreq_event_get_edev_count`, `function devfreq_event_release_edev`.
- Atlas domain: Driver Families / drivers/devfreq.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.