drivers/firmware/dmi-sysfs.c
Source file repositories/reference/linux-study-clean/drivers/firmware/dmi-sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firmware/dmi-sysfs.c- Extension
.c- Size
- 17282 bytes
- Lines
- 698
- Domain
- Driver Families
- Bucket
- drivers/firmware
- 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/kernel.hlinux/init.hlinux/module.hlinux/types.hlinux/kobject.hlinux/dmi.hlinux/capability.hlinux/slab.hlinux/list.hlinux/io.hasm/dmi.h
Detected Declarations
struct dmi_sysfs_entrystruct dmi_sysfs_attributestruct dmi_sysfs_mapped_attributestruct find_dmi_datastruct dmi_read_statestruct dmi_entry_attr_show_datastruct dmi_system_event_logfunction dmi_entry_freefunction dmi_sysfs_attr_showfunction find_dmi_entry_helperfunction find_dmi_entryfunction dmi_entry_lengthfunction dmi_entry_attr_show_helperfunction dmi_entry_attr_showfunction read_sel_8bit_indexed_iofunction read_sel_2x8bit_indexed_iofunction read_sel_16bit_indexed_iofunction dmi_sel_raw_read_iofunction dmi_sel_raw_read_phys32function dmi_sel_raw_read_helperfunction raw_event_log_readfunction dmi_system_event_logfunction dmi_sysfs_entry_lengthfunction dmi_sysfs_entry_handlefunction dmi_sysfs_entry_typefunction dmi_sysfs_entry_instancefunction dmi_sysfs_entry_positionfunction dmi_entry_raw_read_helperfunction raw_readfunction dmi_sysfs_entry_releasefunction dmi_sysfs_register_handlefunction cleanup_entry_listfunction dmi_sysfs_initfunction dmi_sysfs_exitmodule init dmi_sysfs_init
Annotated Snippet
module_init(dmi_sysfs_init);
module_exit(dmi_sysfs_exit);
MODULE_AUTHOR("Mike Waychison <mikew@google.com>");
MODULE_DESCRIPTION("DMI sysfs support");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/types.h`, `linux/kobject.h`, `linux/dmi.h`, `linux/capability.h`, `linux/slab.h`.
- Detected declarations: `struct dmi_sysfs_entry`, `struct dmi_sysfs_attribute`, `struct dmi_sysfs_mapped_attribute`, `struct find_dmi_data`, `struct dmi_read_state`, `struct dmi_entry_attr_show_data`, `struct dmi_system_event_log`, `function dmi_entry_free`, `function dmi_sysfs_attr_show`, `function find_dmi_entry_helper`.
- Atlas domain: Driver Families / drivers/firmware.
- 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.