drivers/acpi/apei/erst.c
Source file repositories/reference/linux-study-clean/drivers/acpi/apei/erst.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/apei/erst.c- Extension
.c- Size
- 30772 bytes
- Lines
- 1301
- 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.
- 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/module.hlinux/init.hlinux/delay.hlinux/io.hlinux/acpi.hlinux/uaccess.hlinux/cper.hlinux/nmi.hlinux/hardirq.hlinux/pstore.hlinux/vmalloc.hlinux/mm.hacpi/apei.hapei-internal.h
Detected Declarations
struct erst_record_id_cachestruct cper_pstore_recordfunction erst_errnofunction erst_get_timeoutfunction erst_timedoutfunction erst_exec_load_var1function erst_exec_load_var2function erst_exec_store_var1function erst_exec_addfunction erst_exec_subtractfunction erst_exec_add_valuefunction erst_exec_subtract_valuefunction erst_exec_stallfunction erst_exec_stall_while_truefunction erst_exec_skip_next_instruction_if_truefunction erst_exec_gotofunction erst_exec_set_src_address_basefunction erst_exec_set_dst_address_basefunction erst_exec_move_datafunction erst_exec_ctx_initfunction erst_get_erangefunction __erst_get_record_countfunction erst_get_record_countfunction __erst_get_next_record_idfunction erst_get_record_id_beginfunction __erst_record_id_cache_add_onefunction erst_get_record_id_nextfunction __erst_record_id_cache_compactfunction erst_get_record_id_endfunction __erst_write_to_storagefunction __erst_read_from_storagefunction __erst_clear_from_storagefunction pr_unimpl_nvramfunction __erst_write_to_nvramfunction __erst_read_to_erange_from_nvramfunction __erst_clear_from_nvramfunction erst_writefunction __erst_read_to_erangefunction __erst_readfunction erst_readfunction erst_clear_cachefunction erst_read_recordfunction erst_clearfunction setup_erst_disablefunction erst_check_tablefunction erst_open_pstorefunction erst_close_pstorefunction erst_reader
Annotated Snippet
device_initcall(erst_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/delay.h`, `linux/io.h`, `linux/acpi.h`, `linux/uaccess.h`, `linux/cper.h`.
- Detected declarations: `struct erst_record_id_cache`, `struct cper_pstore_record`, `function erst_errno`, `function erst_get_timeout`, `function erst_timedout`, `function erst_exec_load_var1`, `function erst_exec_load_var2`, `function erst_exec_store_var1`, `function erst_exec_add`, `function erst_exec_subtract`.
- Atlas domain: Driver Families / drivers/acpi.
- 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.