arch/arm/common/scoop.c
Source file repositories/reference/linux-study-clean/arch/arm/common/scoop.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/common/scoop.c- Extension
.c- Size
- 6509 bytes
- Lines
- 270
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/device.hlinux/gpio/driver.hlinux/string.hlinux/slab.hlinux/platform_device.hlinux/export.hlinux/io.hasm/hardware/scoop.h
Detected Declarations
struct scoop_devfunction reset_scoopfunction __scoop_gpio_setfunction scoop_gpio_setfunction scoop_gpio_getfunction scoop_gpio_direction_inputfunction scoop_gpio_direction_outputfunction read_scoop_regfunction write_scoop_regfunction check_scoop_regfunction scoop_suspendfunction scoop_resumefunction scoop_probefunction scoop_removefunction scoop_initmodule init scoop_initexport platform_scoop_configexport reset_scoopexport read_scoop_regexport write_scoop_reg
Annotated Snippet
subsys_initcall(scoop_init);
Annotation
- Immediate include surface: `linux/device.h`, `linux/gpio/driver.h`, `linux/string.h`, `linux/slab.h`, `linux/platform_device.h`, `linux/export.h`, `linux/io.h`, `asm/hardware/scoop.h`.
- Detected declarations: `struct scoop_dev`, `function reset_scoop`, `function __scoop_gpio_set`, `function scoop_gpio_set`, `function scoop_gpio_get`, `function scoop_gpio_direction_input`, `function scoop_gpio_direction_output`, `function read_scoop_reg`, `function write_scoop_reg`, `function check_scoop_reg`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.