sound/pci/nm256/nm256.c
Source file repositories/reference/linux-study-clean/sound/pci/nm256/nm256.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/nm256/nm256.c- Extension
.c- Size
- 42920 bytes
- Lines
- 1654
- Domain
- Driver Families
- Bucket
- sound/pci
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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
linux/io.hlinux/delay.hlinux/interrupt.hlinux/init.hlinux/pci.hlinux/slab.hlinux/module.hlinux/mutex.hsound/core.hsound/info.hsound/control.hsound/pcm.hsound/ac97_codec.hsound/initval.hnm256_coef.c
Detected Declarations
struct nm256_streamstruct nm256struct initialValuesfunction snd_nm256_readbfunction snd_nm256_readwfunction snd_nm256_readlfunction snd_nm256_writebfunction snd_nm256_writewfunction snd_nm256_writelfunction snd_nm256_write_bufferfunction snd_nm256_get_start_offsetfunction snd_nm256_load_one_coefficientfunction snd_nm256_load_coefficientfunction snd_nm256_fixed_ratefunction snd_nm256_set_formatfunction snd_nm256_acquire_irqfunction snd_nm256_release_irqfunction snd_nm256_pcm_markfunction snd_nm256_playback_startfunction snd_nm256_capture_startfunction snd_nm256_playback_stopfunction snd_nm256_capture_stopfunction snd_nm256_playback_triggerfunction snd_nm256_capture_triggerfunction snd_nm256_pcm_preparefunction snd_nm256_playback_pointerfunction snd_nm256_capture_pointerfunction snd_nm256_playback_silencefunction snd_nm256_playback_copyfunction snd_nm256_capture_copyfunction snd_nm256_playback_updatefunction snd_nm256_capture_updatefunction snd_nm256_pcm_hw_paramsfunction snd_nm256_setup_streamfunction snd_nm256_playback_openfunction snd_nm256_capture_openfunction snd_nm256_playback_closefunction snd_nm256_capture_closefunction snd_nm256_pcmfunction snd_nm256_init_chipfunction snd_nm256_intr_checkfunction snd_nm256_interruptfunction snd_nm256_interrupt_zxfunction snd_nm256_ac97_readyfunction nm256_ac97_idxfunction snd_nm256_ac97_readfunction snd_nm256_ac97_writefunction snd_nm256_ac97_reset
Annotated Snippet
static struct pci_driver nm256_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_nm256_ids,
.probe = snd_nm256_probe,
.driver = {
.pm = &nm256_pm,
},
};
module_pci_driver(nm256_driver);
Annotation
- Immediate include surface: `linux/io.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/init.h`, `linux/pci.h`, `linux/slab.h`, `linux/module.h`, `linux/mutex.h`.
- Detected declarations: `struct nm256_stream`, `struct nm256`, `struct initialValues`, `function snd_nm256_readb`, `function snd_nm256_readw`, `function snd_nm256_readl`, `function snd_nm256_writeb`, `function snd_nm256_writew`, `function snd_nm256_writel`, `function snd_nm256_write_buffer`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.