drivers/mtd/maps/pismo.c
Source file repositories/reference/linux-study-clean/drivers/mtd/maps/pismo.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mtd/maps/pismo.c- Extension
.c- Size
- 5910 bytes
- Lines
- 285
- 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/init.hlinux/module.hlinux/i2c.hlinux/slab.hlinux/platform_device.hlinux/spinlock.hlinux/mutex.hlinux/mtd/physmap.hlinux/mtd/plat-ram.hlinux/mtd/pismo.h
Detected Declarations
struct pismo_cs_blockstruct pismo_eepromstruct pismo_memstruct pismo_datafunction pismo_set_vppfunction pismo_width_to_bytesfunction pismo_eeprom_readfunction pismo_add_devicefunction pismo_add_norfunction pismo_add_sramfunction pismo_add_onefunction pismo_removefunction pismo_probefunction pismo_initfunction pismo_exitmodule init pismo_init
Annotated Snippet
module_init(pismo_init);
static void __exit pismo_exit(void)
{
i2c_del_driver(&pismo_driver);
}
module_exit(pismo_exit);
MODULE_AUTHOR("Russell King <linux@arm.linux.org.uk>");
MODULE_DESCRIPTION("PISMO memory driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/i2c.h`, `linux/slab.h`, `linux/platform_device.h`, `linux/spinlock.h`, `linux/mutex.h`, `linux/mtd/physmap.h`.
- Detected declarations: `struct pismo_cs_block`, `struct pismo_eeprom`, `struct pismo_mem`, `struct pismo_data`, `function pismo_set_vpp`, `function pismo_width_to_bytes`, `function pismo_eeprom_read`, `function pismo_add_device`, `function pismo_add_nor`, `function pismo_add_sram`.
- 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.