sound/ac97_bus.c
Source file repositories/reference/linux-study-clean/sound/ac97_bus.c
File Facts
- System
- Linux kernel
- Corpus path
sound/ac97_bus.c- Extension
.c- Size
- 2663 bytes
- Lines
- 101
- Domain
- Driver Families
- Bucket
- sound/ac97_bus.c
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/device.hlinux/string.hsound/ac97_codec.h
Detected Declarations
function snd_ac97_check_idfunction snd_ac97_resetfunction ac97_bus_initfunction ac97_bus_exitmodule init ac97_bus_initexport snd_ac97_resetexport ac97_bus_type
Annotated Snippet
const struct bus_type ac97_bus_type = {
.name = "ac97",
};
EXPORT_SYMBOL(ac97_bus_type);
static int __init ac97_bus_init(void)
{
return bus_register(&ac97_bus_type);
}
subsys_initcall(ac97_bus_init);
static void __exit ac97_bus_exit(void)
{
bus_unregister(&ac97_bus_type);
}
module_exit(ac97_bus_exit);
MODULE_DESCRIPTION("Legacy AC97 bus interface");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/device.h`, `linux/string.h`, `sound/ac97_codec.h`.
- Detected declarations: `function snd_ac97_check_id`, `function snd_ac97_reset`, `function ac97_bus_init`, `function ac97_bus_exit`, `module init ac97_bus_init`, `export snd_ac97_reset`, `export ac97_bus_type`.
- Atlas domain: Driver Families / sound/ac97_bus.c.
- Implementation status: pattern 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.