drivers/mtd/nand/raw/diskonchip.c
Source file repositories/reference/linux-study-clean/drivers/mtd/nand/raw/diskonchip.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mtd/nand/raw/diskonchip.c- Extension
.c- Size
- 44326 bytes
- Lines
- 1582
- 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/init.hlinux/sched.hlinux/delay.hlinux/rslib.hlinux/moduleparam.hlinux/slab.hlinux/io.hlinux/mtd/mtd.hlinux/mtd/rawnand.hlinux/mtd/doc2000.hlinux/mtd/partitions.hlinux/mtd/inftl.hlinux/module.h
Detected Declarations
struct doc_privfunction doc_ecc_decodefunction DoC_Delayfunction _DoC_WaitReadyfunction DoC_WaitReadyfunction doc2000_write_bytefunction doc2000_writebuffunction doc2000_readbuffunction readidfunction doc200x_ident_chipfunction doc2000_count_chipsfunction doc2001_write_bytefunction doc2001_writebuffunction doc2001_readbuffunction doc2001plus_writebuffunction doc2001plus_readbuffunction doc200x_write_controlfunction doc200x_exec_instrfunction doc200x_exec_opfunction doc2001plus_write_pipe_termfunction doc2001plus_exec_instrfunction doc2001plus_exec_opfunction doc200x_enable_hweccfunction doc2001plus_enable_hweccfunction doc200x_calculate_eccfunction doc200x_correct_datafunction doc200x_ooblayout_eccfunction doc200x_ooblayout_freefunction find_media_headersfunction nftl_partscanfunction inftl_partscanfunction nftl_scan_bbtfunction inftl_scan_bbtfunction doc2000_initfunction doc2001_initfunction doc2001plus_initfunction doc200x_attach_chipfunction doc_probefunction release_nanddocfunction init_nanddocfunction cleanup_nanddocmodule init init_nanddoc
Annotated Snippet
module_init(init_nanddoc);
module_exit(cleanup_nanddoc);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
MODULE_DESCRIPTION("M-Systems DiskOnChip 2000, Millennium and Millennium Plus device driver");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/sched.h`, `linux/delay.h`, `linux/rslib.h`, `linux/moduleparam.h`, `linux/slab.h`, `linux/io.h`.
- Detected declarations: `struct doc_priv`, `function doc_ecc_decode`, `function DoC_Delay`, `function _DoC_WaitReady`, `function DoC_WaitReady`, `function doc2000_write_byte`, `function doc2000_writebuf`, `function doc2000_readbuf`, `function readid`, `function doc200x_ident_chip`.
- 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.