drivers/gpio/gpio-nomadik.c
Source file repositories/reference/linux-study-clean/drivers/gpio/gpio-nomadik.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpio/gpio-nomadik.c- Extension
.c- Size
- 19180 bytes
- Lines
- 738
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/cleanup.hlinux/clk.hlinux/gpio/consumer.hlinux/gpio/driver.hlinux/interrupt.hlinux/kernel.hlinux/mod_devicetable.hlinux/pinctrl/pinctrl.hlinux/platform_device.hlinux/property.hlinux/reset.hlinux/seq_file.hlinux/slab.hlinux/string_choices.hlinux/types.hlinux/gpio/gpio-nomadik.h
Detected Declarations
enum nmk_gpio_irq_typefunction __nmk_gpio_set_slpmfunction __nmk_gpio_set_outputfunction __nmk_gpio_make_outputfunction nmk_gpio_irq_ackfunction __nmk_gpio_irq_modifyfunction __nmk_gpio_set_wakefunction nmk_gpio_irq_maskunmaskfunction nmk_gpio_irq_maskfunction nmk_gpio_irq_unmaskfunction nmk_gpio_irq_set_wakefunction nmk_gpio_irq_set_typefunction nmk_gpio_irq_startupfunction nmk_gpio_irq_shutdownfunction nmk_gpio_irq_handlerfunction nmk_gpio_get_dirfunction nmk_gpio_make_inputfunction nmk_gpio_get_inputfunction nmk_gpio_set_outputfunction nmk_gpio_make_outputfunction nmk_gpio_get_modefunction nmk_gpio_dbg_show_onefunction request_irqfunction nmk_gpio_dbg_showfunction nmk_gpio_irq_print_chipfunction nmk_gpio_probefunction nmk_gpio_initmodule init nmk_gpio_init
Annotated Snippet
subsys_initcall(nmk_gpio_init);
Annotation
- Immediate include surface: `linux/cleanup.h`, `linux/clk.h`, `linux/gpio/consumer.h`, `linux/gpio/driver.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/mod_devicetable.h`, `linux/pinctrl/pinctrl.h`.
- Detected declarations: `enum nmk_gpio_irq_type`, `function __nmk_gpio_set_slpm`, `function __nmk_gpio_set_output`, `function __nmk_gpio_make_output`, `function nmk_gpio_irq_ack`, `function __nmk_gpio_irq_modify`, `function __nmk_gpio_set_wake`, `function nmk_gpio_irq_maskunmask`, `function nmk_gpio_irq_mask`, `function nmk_gpio_irq_unmask`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.