drivers/staging/vme_user/vme_fake.c
Source file repositories/reference/linux-study-clean/drivers/staging/vme_user/vme_fake.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/vme_user/vme_fake.c- Extension
.c- Size
- 30320 bytes
- Lines
- 1301
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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/device.hlinux/errno.hlinux/interrupt.hlinux/module.hlinux/moduleparam.hlinux/slab.hlinux/spinlock.hlinux/types.hvme.hvme_bridge.h
Detected Declarations
struct fake_slave_windowstruct fake_master_windowstruct fake_driverfunction fake_VIRQ_taskletfunction fake_irq_setfunction fake_ptr_to_pcifunction fake_irq_generatefunction fake_slave_setfunction fake_slave_getfunction fake_master_setfunction __fake_master_getfunction fake_master_getfunction fake_lm_checkfunction fake_vmeread8function fake_vmeread16function fake_vmeread32function fake_master_readfunction fake_vmewrite8function fake_vmewrite16function fake_vmewrite32function fake_master_writefunction fake_master_rmwfunction fake_lm_setfunction fake_lm_getfunction fake_lm_attachfunction fake_lm_detachfunction fake_slot_getfunction fake_free_consistentfunction fake_crcsr_initfunction fake_crcsr_exitfunction fake_initfunction fake_exitmodule init fake_init
Annotated Snippet
module_init(fake_init);
module_exit(fake_exit);
Annotation
- Immediate include surface: `linux/device.h`, `linux/errno.h`, `linux/interrupt.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/slab.h`, `linux/spinlock.h`, `linux/types.h`.
- Detected declarations: `struct fake_slave_window`, `struct fake_master_window`, `struct fake_driver`, `function fake_VIRQ_tasklet`, `function fake_irq_set`, `function fake_ptr_to_pci`, `function fake_irq_generate`, `function fake_slave_set`, `function fake_slave_get`, `function fake_master_set`.
- Atlas domain: Driver Families / drivers/staging.
- 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.