drivers/tty/serial/serial_ctrl.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/serial_ctrl.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/serial_ctrl.c- Extension
.c- Size
- 1605 bytes
- Lines
- 69
- Domain
- Driver Families
- Bucket
- drivers/tty
- 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/device.hlinux/module.hlinux/pm_runtime.hlinux/serial_core.hlinux/spinlock.hserial_base.h
Detected Declarations
function Copyrightfunction serial_ctrl_removefunction serial_ctrl_register_portfunction serial_ctrl_unregister_portfunction serial_base_ctrl_initfunction serial_base_ctrl_exit
Annotated Snippet
static struct device_driver serial_ctrl_driver = {
.name = "ctrl",
.suppress_bind_attrs = true,
.probe = serial_ctrl_probe,
.remove = serial_ctrl_remove,
};
int serial_base_ctrl_init(void)
{
return serial_base_driver_register(&serial_ctrl_driver);
}
void serial_base_ctrl_exit(void)
{
serial_base_driver_unregister(&serial_ctrl_driver);
}
MODULE_AUTHOR("Tony Lindgren <tony@atomide.com>");
MODULE_DESCRIPTION("Serial core controller driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/module.h`, `linux/pm_runtime.h`, `linux/serial_core.h`, `linux/spinlock.h`, `serial_base.h`.
- Detected declarations: `function Copyright`, `function serial_ctrl_remove`, `function serial_ctrl_register_port`, `function serial_ctrl_unregister_port`, `function serial_base_ctrl_init`, `function serial_base_ctrl_exit`.
- Atlas domain: Driver Families / drivers/tty.
- 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.