drivers/ssb/driver_gpio.c
Source file repositories/reference/linux-study-clean/drivers/ssb/driver_gpio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ssb/driver_gpio.c- Extension
.c- Size
- 12006 bytes
- Lines
- 483
- Domain
- Driver Families
- Bucket
- drivers/ssb
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
ssb_private.hlinux/gpio/driver.hlinux/irq.hlinux/interrupt.hlinux/irqdomain.hlinux/export.hlinux/ssb/ssb.h
Detected Declarations
function ssb_gpio_to_irqfunction ssb_gpio_chipco_get_valuefunction ssb_gpio_chipco_set_valuefunction ssb_gpio_chipco_direction_inputfunction ssb_gpio_chipco_direction_outputfunction ssb_gpio_chipco_requestfunction ssb_gpio_chipco_freefunction ssb_gpio_irq_chipco_maskfunction ssb_gpio_irq_chipco_unmaskfunction ssb_gpio_irq_chipco_handlerfunction ssb_gpio_irq_chipco_domain_initfunction ssb_gpio_irq_chipco_domain_exitfunction ssb_gpio_irq_chipco_domain_initfunction ssb_gpio_irq_chipco_domain_exitfunction ssb_gpio_extif_get_valuefunction ssb_gpio_extif_set_valuefunction ssb_gpio_extif_direction_inputfunction ssb_gpio_extif_direction_outputfunction ssb_gpio_irq_extif_maskfunction ssb_gpio_irq_extif_unmaskfunction ssb_gpio_irq_extif_handlerfunction ssb_gpio_irq_extif_domain_initfunction ssb_gpio_irq_extif_domain_exitfunction ssb_gpio_irq_extif_domain_initfunction ssb_gpio_irq_extif_domain_exitfunction ssb_gpio_extif_initfunction ssb_gpio_initfunction ssb_gpio_unregister
Annotated Snippet
ssb_extif_available(&bus->extif)) {
gpiochip_remove(&bus->gpio);
return 0;
}
return -1;
}
Annotation
- Immediate include surface: `ssb_private.h`, `linux/gpio/driver.h`, `linux/irq.h`, `linux/interrupt.h`, `linux/irqdomain.h`, `linux/export.h`, `linux/ssb/ssb.h`.
- Detected declarations: `function ssb_gpio_to_irq`, `function ssb_gpio_chipco_get_value`, `function ssb_gpio_chipco_set_value`, `function ssb_gpio_chipco_direction_input`, `function ssb_gpio_chipco_direction_output`, `function ssb_gpio_chipco_request`, `function ssb_gpio_chipco_free`, `function ssb_gpio_irq_chipco_mask`, `function ssb_gpio_irq_chipco_unmask`, `function ssb_gpio_irq_chipco_handler`.
- Atlas domain: Driver Families / drivers/ssb.
- Implementation status: source implementation candidate.
- 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.