drivers/leds/leds-sunfire.c
Source file repositories/reference/linux-study-clean/drivers/leds/leds-sunfire.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/leds/leds-sunfire.c- Extension
.c- Size
- 5613 bytes
- Lines
- 253
- Domain
- Driver Families
- Bucket
- drivers/leds
- 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/kernel.hlinux/module.hlinux/init.hlinux/leds.hlinux/io.hlinux/platform_device.hlinux/slab.hasm/fhc.hasm/upa.h
Detected Declarations
struct sunfire_ledstruct led_typestruct sunfire_drvdatafunction __clockboard_setfunction clockboard_left_setfunction clockboard_middle_setfunction clockboard_right_setfunction __fhc_setfunction fhc_left_setfunction fhc_middle_setfunction fhc_right_setfunction sunfire_led_generic_probefunction sunfire_led_generic_removefunction sunfire_clockboard_led_probefunction sunfire_fhc_led_probefunction sunfire_leds_initfunction sunfire_leds_exitmodule init sunfire_leds_init
Annotated Snippet
module_init(sunfire_leds_init);
module_exit(sunfire_leds_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/leds.h`, `linux/io.h`, `linux/platform_device.h`, `linux/slab.h`, `asm/fhc.h`.
- Detected declarations: `struct sunfire_led`, `struct led_type`, `struct sunfire_drvdata`, `function __clockboard_set`, `function clockboard_left_set`, `function clockboard_middle_set`, `function clockboard_right_set`, `function __fhc_set`, `function fhc_left_set`, `function fhc_middle_set`.
- Atlas domain: Driver Families / drivers/leds.
- 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.