drivers/acpi/nfit/core.c
Source file repositories/reference/linux-study-clean/drivers/acpi/nfit/core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/nfit/core.c- Extension
.c- Size
- 97356 bytes
- Lines
- 3589
- 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/platform_device.hlinux/list_sort.hlinux/libnvdimm.hlinux/module.hlinux/nospec.hlinux/mutex.hlinux/ndctl.hlinux/sysfs.hlinux/delay.hlinux/list.hlinux/acpi.hlinux/sort.hlinux/io.hlinux/nd.hasm/cacheflush.hacpi/nfit.hintel.hnfit.hlinux/io-64-nonatomic-hi-lo.h
Detected Declarations
struct nfit_table_prevstruct nfit_set_infostruct nfit_set_info2enum nfit_aux_cmdsfunction xlat_bus_statusfunction xlat_nvdimm_statusfunction xlat_statusfunction nfit_dsm_revidfunction payload_dumpablefunction cmd_to_funcfunction acpi_nfit_ctlfunction nfit_spa_typefunction sizeof_spafunction add_spafunction list_for_each_entryfunction add_memdevfunction list_for_each_entryfunction nfit_get_smbios_idfunction list_for_each_entryfunction sizeof_dcrfunction add_dcrfunction list_for_each_entryfunction add_bdwfunction sizeof_idtfunction add_idtfunction list_for_each_entryfunction sizeof_flushfunction add_flushfunction list_for_each_entryfunction add_platform_capfunction __nfit_mem_initfunction list_for_each_entryfunction list_for_each_entryfunction list_for_each_entryfunction list_for_each_entryfunction nfit_mem_cmpfunction nfit_mem_initfunction MEMDEVfunction bus_dsm_mask_showfunction revision_showfunction hw_error_scrub_showfunction hw_error_scrub_storefunction scrub_showfunction scrub_storefunction ars_supportedfunction nfit_visiblefunction handle_showfunction phys_id_show
Annotated Snippet
module_init(nfit_init);
module_exit(nfit_exit);
MODULE_DESCRIPTION("ACPI NVDIMM Firmware Interface Table (NFIT) driver");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Intel Corporation");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/list_sort.h`, `linux/libnvdimm.h`, `linux/module.h`, `linux/nospec.h`, `linux/mutex.h`, `linux/ndctl.h`, `linux/sysfs.h`.
- Detected declarations: `struct nfit_table_prev`, `struct nfit_set_info`, `struct nfit_set_info2`, `enum nfit_aux_cmds`, `function xlat_bus_status`, `function xlat_nvdimm_status`, `function xlat_status`, `function nfit_dsm_revid`, `function payload_dumpable`, `function cmd_to_func`.
- 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.