drivers/mtd/maps/sbc_gxx.c
Source file repositories/reference/linux-study-clean/drivers/mtd/maps/sbc_gxx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mtd/maps/sbc_gxx.c- Extension
.c- Size
- 5692 bytes
- Lines
- 225
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/ioport.hlinux/init.hasm/io.hlinux/mtd/mtd.hlinux/mtd/map.hlinux/mtd/partitions.h
Detected Declarations
function sbc_gxx_pagefunction sbc_gxx_read8function sbc_gxx_copy_fromfunction sbc_gxx_write8function sbc_gxx_copy_tofunction cleanup_sbc_gxxfunction init_sbc_gxxmodule init init_sbc_gxx
Annotated Snippet
module_init(init_sbc_gxx);
module_exit(cleanup_sbc_gxx);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Arcom Control Systems Ltd.");
MODULE_DESCRIPTION("MTD map driver for SBC-GXm and SBC-GX1 series boards");
Annotation
- Immediate include surface: `linux/module.h`, `linux/ioport.h`, `linux/init.h`, `asm/io.h`, `linux/mtd/mtd.h`, `linux/mtd/map.h`, `linux/mtd/partitions.h`.
- Detected declarations: `function sbc_gxx_page`, `function sbc_gxx_read8`, `function sbc_gxx_copy_from`, `function sbc_gxx_write8`, `function sbc_gxx_copy_to`, `function cleanup_sbc_gxx`, `function init_sbc_gxx`, `module init init_sbc_gxx`.
- Atlas domain: Driver Families / drivers/mtd.
- 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.