drivers/tty/serial/zs.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/zs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/zs.c- Extension
.c- Size
- 30517 bytes
- Lines
- 1249
- Domain
- Driver Families
- Bucket
- drivers/tty
- 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.
- 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/bug.hlinux/console.hlinux/delay.hlinux/errno.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/ioport.hlinux/irqflags.hlinux/kernel.hlinux/module.hlinux/major.hlinux/platform_device.hlinux/serial.hlinux/serial_core.hlinux/spinlock.hlinux/sysrq.hlinux/tty.hlinux/tty_flip.hlinux/types.hlinux/atomic.hzs.h
Detected Declarations
function recovery_delayfunction read_zsregfunction write_zsregfunction read_zsdatafunction write_zsdatafunction zs_dumpfunction zs_spin_lock_cond_irqfunction zs_spin_unlock_cond_irqfunction zs_receive_drainfunction zs_transmit_drainfunction zs_line_drainfunction load_zsregsfunction zs_tx_emptyfunction zs_raw_get_ab_mctrlfunction zs_raw_get_mctrlfunction zs_raw_xor_mctrlfunction zs_get_mctrlfunction zs_set_mctrlfunction zs_raw_stop_txfunction zs_stop_txfunction zs_start_txfunction zs_stop_rxfunction zs_enable_msfunction zs_break_ctlfunction zs_receive_charsfunction zs_raw_transmit_charsfunction zs_transmit_charsfunction zs_status_handlefunction zs_interruptfunction zs_startupfunction zs_shutdownfunction zs_resetfunction zs_set_termiosfunction zs_release_portfunction zs_map_portfunction zs_request_portfunction zs_config_portfunction zs_verify_portfunction zs_probefunction zs_removefunction zs_console_putcharfunction zs_console_writefunction zs_console_setupfunction zs_initfunction zs_exitmodule init zs_init
Annotated Snippet
module_init(zs_init);
module_exit(zs_exit);
Annotation
- Immediate include surface: `linux/bug.h`, `linux/console.h`, `linux/delay.h`, `linux/errno.h`, `linux/init.h`, `linux/interrupt.h`, `linux/io.h`, `linux/ioport.h`.
- Detected declarations: `function recovery_delay`, `function read_zsreg`, `function write_zsreg`, `function read_zsdata`, `function write_zsdata`, `function zs_dump`, `function zs_spin_lock_cond_irq`, `function zs_spin_unlock_cond_irq`, `function zs_receive_drain`, `function zs_transmit_drain`.
- Atlas domain: Driver Families / drivers/tty.
- Implementation status: integration 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.