drivers/mfd/rsmu_spi.c
Source file repositories/reference/linux-study-clean/drivers/mfd/rsmu_spi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/rsmu_spi.c- Extension
.c- Size
- 7037 bytes
- Lines
- 285
- Domain
- Driver Families
- Bucket
- drivers/mfd
- 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/kernel.hlinux/mfd/core.hlinux/mfd/rsmu.hlinux/module.hlinux/of.hlinux/regmap.hlinux/slab.hlinux/spi/spi.hrsmu.h
Detected Declarations
function Unitfunction rsmu_write_devicefunction rsmu_write_page_registerfunction rsmu_reg_readfunction rsmu_reg_writefunction rsmu_spi_probefunction rsmu_spi_removefunction rsmu_spi_initfunction rsmu_spi_exitmodule init rsmu_spi_init
Annotated Snippet
subsys_initcall(rsmu_spi_init);
static void __exit rsmu_spi_exit(void)
{
spi_unregister_driver(&rsmu_spi_driver);
}
module_exit(rsmu_spi_exit);
MODULE_DESCRIPTION("Renesas SMU SPI driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/mfd/core.h`, `linux/mfd/rsmu.h`, `linux/module.h`, `linux/of.h`, `linux/regmap.h`, `linux/slab.h`.
- Detected declarations: `function Unit`, `function rsmu_write_device`, `function rsmu_write_page_register`, `function rsmu_reg_read`, `function rsmu_reg_write`, `function rsmu_spi_probe`, `function rsmu_spi_remove`, `function rsmu_spi_init`, `function rsmu_spi_exit`, `module init rsmu_spi_init`.
- Atlas domain: Driver Families / drivers/mfd.
- 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.