drivers/acpi/platform_profile.c
Source file repositories/reference/linux-study-clean/drivers/acpi/platform_profile.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/platform_profile.c- Extension
.c- Size
- 18325 bytes
- Lines
- 718
- Domain
- Driver Families
- Bucket
- drivers/acpi
- 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.
- 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/acpi.hlinux/bits.hlinux/cleanup.hlinux/init.hlinux/mutex.hlinux/platform_profile.hlinux/sysfs.h
Detected Declarations
struct platform_profile_handlerstruct aggregate_choices_datafunction _commmon_choices_showfunction for_each_set_bitfunction _store_class_profilefunction _notify_class_profilefunction get_class_profilefunction name_showfunction choices_showfunction profile_showfunction scoped_cond_guardfunction profile_storefunction scoped_cond_guardfunction pprof_device_releasefunction _aggregate_choicesfunction _remove_hidden_choicesfunction platform_profile_choices_showfunction scoped_cond_guardfunction _aggregate_profilesfunction _store_and_notifyfunction platform_profile_showfunction scoped_cond_guardfunction platform_profile_storefunction scoped_cond_guardfunction profile_class_registeredfunction profile_class_is_visiblefunction platform_profile_notifyfunction platform_profile_cyclefunction scoped_cond_guardfunction platform_profile_removefunction devm_platform_profile_releasefunction platform_profile_initfunction platform_profile_exitmodule init platform_profile_initexport platform_profile_notifyexport platform_profile_cycleexport platform_profile_registerexport platform_profile_removeexport devm_platform_profile_register
Annotated Snippet
module_init(platform_profile_init);
module_exit(platform_profile_exit);
MODULE_AUTHOR("Mark Pearson <markpearson@lenovo.com>");
MODULE_DESCRIPTION("ACPI platform profile sysfs interface");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bits.h`, `linux/cleanup.h`, `linux/init.h`, `linux/mutex.h`, `linux/platform_profile.h`, `linux/sysfs.h`.
- Detected declarations: `struct platform_profile_handler`, `struct aggregate_choices_data`, `function _commmon_choices_show`, `function for_each_set_bit`, `function _store_class_profile`, `function _notify_class_profile`, `function get_class_profile`, `function name_show`, `function choices_show`, `function profile_show`.
- Atlas domain: Driver Families / drivers/acpi.
- Implementation status: integration implementation candidate.
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.