drivers/w1/masters/matrox_w1.c
Source file repositories/reference/linux-study-clean/drivers/w1/masters/matrox_w1.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/w1/masters/matrox_w1.c- Extension
.c- Size
- 4589 bytes
- Lines
- 199
- Domain
- Driver Families
- Bucket
- drivers/w1
- 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.
- 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
asm/types.hlinux/atomic.hlinux/io.hlinux/delay.hlinux/kernel.hlinux/module.hlinux/list.hlinux/interrupt.hlinux/spinlock.hlinux/timer.hlinux/slab.hlinux/pci_ids.hlinux/pci.hlinux/w1.h
Detected Declarations
struct matrox_devicefunction matrox_w1_read_regfunction matrox_w1_write_regfunction matrox_w1_write_ddc_bitfunction matrox_w1_read_ddc_bitfunction matrox_w1_hw_initfunction matrox_w1_probefunction matrox_w1_remove
Annotated Snippet
static struct pci_driver matrox_w1_pci_driver = {
.name = "matrox_w1",
.id_table = matrox_w1_tbl,
.probe = matrox_w1_probe,
.remove = matrox_w1_remove,
};
module_pci_driver(matrox_w1_pci_driver);
MODULE_AUTHOR("Evgeniy Polyakov <zbr@ioremap.net>");
MODULE_DESCRIPTION("Driver for transport(Dallas 1-wire protocol) over VGA DDC(matrox gpio).");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `asm/types.h`, `linux/atomic.h`, `linux/io.h`, `linux/delay.h`, `linux/kernel.h`, `linux/module.h`, `linux/list.h`, `linux/interrupt.h`.
- Detected declarations: `struct matrox_device`, `function matrox_w1_read_reg`, `function matrox_w1_write_reg`, `function matrox_w1_write_ddc_bit`, `function matrox_w1_read_ddc_bit`, `function matrox_w1_hw_init`, `function matrox_w1_probe`, `function matrox_w1_remove`.
- Atlas domain: Driver Families / drivers/w1.
- 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.