drivers/gpio/gpio-mc33880.c
Source file repositories/reference/linux-study-clean/drivers/gpio/gpio-mc33880.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpio-mc33880.c- Extension
.c- Size
- 3596 bytes
- Lines
- 177
- 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/mutex.hlinux/spi/spi.hlinux/spi/mc33880.hlinux/gpio/driver.hlinux/slab.hlinux/module.h
Detected Declarations
struct mc33880function mc33880_write_configfunction __mc33880_setfunction mc33880_setfunction mc33880_probefunction mc33880_removefunction mc33880_initfunction mc33880_exitmodule init mc33880_init
Annotated Snippet
subsys_initcall(mc33880_init);
static void __exit mc33880_exit(void)
{
spi_unregister_driver(&mc33880_driver);
}
module_exit(mc33880_exit);
MODULE_AUTHOR("Mocean Laboratories <info@mocean-labs.com>");
MODULE_DESCRIPTION("MC33880 high-side/low-side switch GPIO driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/init.h`, `linux/mutex.h`, `linux/spi/spi.h`, `linux/spi/mc33880.h`, `linux/gpio/driver.h`, `linux/slab.h`, `linux/module.h`.
- Detected declarations: `struct mc33880`, `function mc33880_write_config`, `function __mc33880_set`, `function mc33880_set`, `function mc33880_probe`, `function mc33880_remove`, `function mc33880_init`, `function mc33880_exit`, `module init mc33880_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.