sound/drivers/portman2x4.c
Source file repositories/reference/linux-study-clean/sound/drivers/portman2x4.c
File Facts
- System
- Linux kernel
- Corpus path
sound/drivers/portman2x4.c- Extension
.c- Size
- 24540 bytes
- Lines
- 842
- Domain
- Driver Families
- Bucket
- sound/drivers
- 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/init.hlinux/platform_device.hlinux/parport.hlinux/spinlock.hlinux/delay.hlinux/slab.hlinux/module.hsound/core.hsound/initval.hsound/rawmidi.hsound/control.h
Detected Declarations
struct portmanfunction portman_freefunction portman_createfunction selectedfunction portman_read_statusfunction portman_write_datafunction portman_write_midifunction portfunction portman_data_availfunction portman_flush_inputfunction portman_probefunction portman_device_initfunction snd_portman_midi_openfunction snd_portman_midi_closefunction snd_portman_midi_input_triggerfunction snd_portman_midi_output_triggerfunction snd_portman_rawmidi_createfunction snd_portman_interruptfunction snd_portman_attachfunction snd_portman_detachfunction snd_portman_card_private_freefunction snd_portman_probefunction snd_portman_removefunction snd_portman_unregister_allfunction snd_portman_module_initfunction snd_portman_module_exitmodule init snd_portman_module_init
Annotated Snippet
module_init(snd_portman_module_init);
module_exit(snd_portman_module_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/platform_device.h`, `linux/parport.h`, `linux/spinlock.h`, `linux/delay.h`, `linux/slab.h`, `linux/module.h`, `sound/core.h`.
- Detected declarations: `struct portman`, `function portman_free`, `function portman_create`, `function selected`, `function portman_read_status`, `function portman_write_data`, `function portman_write_midi`, `function port`, `function portman_data_avail`, `function portman_flush_input`.
- Atlas domain: Driver Families / sound/drivers.
- 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.