drivers/gpio/gpio-mm-lantiq.c
Source file repositories/reference/linux-study-clean/drivers/gpio/gpio-mm-lantiq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpio-mm-lantiq.c- Extension
.c- Size
- 3975 bytes
- Lines
- 161
- Domain
- Driver Families
- Bucket
- drivers/gpio
- 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.
- 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/types.hlinux/platform_device.hlinux/mutex.hlinux/gpio/driver.hlinux/of.hlinux/io.hlinux/slab.hlantiq_soc.h
Detected Declarations
struct ltq_mmfunction ltq_mm_applyfunction ltq_mm_setfunction ltq_mm_dir_outfunction ltq_mm_save_regsfunction ltq_mm_probefunction ltq_mm_initfunction ltq_mm_exitmodule init ltq_mm_init
Annotated Snippet
subsys_initcall(ltq_mm_init);
static void __exit ltq_mm_exit(void)
{
platform_driver_unregister(<q_mm_driver);
}
module_exit(ltq_mm_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/types.h`, `linux/platform_device.h`, `linux/mutex.h`, `linux/gpio/driver.h`, `linux/of.h`, `linux/io.h`.
- Detected declarations: `struct ltq_mm`, `function ltq_mm_apply`, `function ltq_mm_set`, `function ltq_mm_dir_out`, `function ltq_mm_save_regs`, `function ltq_mm_probe`, `function ltq_mm_init`, `function ltq_mm_exit`, `module init ltq_mm_init`.
- Atlas domain: Driver Families / drivers/gpio.
- 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.