drivers/mtd/tests/mtd_nandecctest.c
Source file repositories/reference/linux-study-clean/drivers/mtd/tests/mtd_nandecctest.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mtd/tests/mtd_nandecctest.c- Extension
.c- Size
- 8557 bytes
- Lines
- 330
- Domain
- Driver Families
- Bucket
- drivers/mtd
- 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/kernel.hlinux/module.hlinux/list.hlinux/random.hlinux/string.hlinux/bitops.hlinux/slab.hlinux/mtd/nand-ecc-sw-hamming.hmtd_test.h
Detected Declarations
struct nand_ecc_testfunction __change_bit_lefunction double_bit_error_datafunction random_ecc_bitfunction single_bit_error_eccfunction double_bit_error_eccfunction no_bit_errorfunction no_bit_error_verifyfunction single_bit_error_in_datafunction single_bit_error_in_eccfunction single_bit_error_correctfunction double_bit_error_in_datafunction single_bit_error_in_data_and_eccfunction double_bit_error_in_eccfunction double_bit_error_detectfunction dump_data_eccfunction nand_ecc_test_runfunction nand_ecc_test_runfunction ecc_test_initfunction ecc_test_exitmodule init ecc_test_init
Annotated Snippet
module_init(ecc_test_init);
module_exit(ecc_test_exit);
MODULE_DESCRIPTION("NAND ECC function test module");
MODULE_AUTHOR("Akinobu Mita");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/list.h`, `linux/random.h`, `linux/string.h`, `linux/bitops.h`, `linux/slab.h`, `linux/mtd/nand-ecc-sw-hamming.h`.
- Detected declarations: `struct nand_ecc_test`, `function __change_bit_le`, `function double_bit_error_data`, `function random_ecc_bit`, `function single_bit_error_ecc`, `function double_bit_error_ecc`, `function no_bit_error`, `function no_bit_error_verify`, `function single_bit_error_in_data`, `function single_bit_error_in_ecc`.
- Atlas domain: Driver Families / drivers/mtd.
- 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.