drivers/tty/serial/sunzilog.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/sunzilog.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/sunzilog.c- Extension
.c- Size
- 41512 bytes
- Lines
- 1647
- 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.
- 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
linux/module.hlinux/kernel.hlinux/errno.hlinux/delay.hlinux/tty.hlinux/tty_flip.hlinux/major.hlinux/string.hlinux/ptrace.hlinux/ioport.hlinux/slab.hlinux/circ_buf.hlinux/serial.hlinux/sysrq.hlinux/console.hlinux/spinlock.hlinux/serio.hlinux/init.hlinux/of.hlinux/platform_device.hlinux/io.hasm/irq.hasm/setup.hlinux/serial_core.hlinux/sunserialcore.hsunzilog.h
Detected Declarations
struct uart_sunzilog_portfunction read_zsregfunction write_zsregfunction sunzilog_clear_fifofunction __load_zsregsfunction sunzilog_maybe_update_regsfunction sunzilog_change_mouse_baudfunction sunzilog_kbdms_receive_charsfunction sunzilog_receive_charsfunction sunzilog_status_handlefunction sunzilog_transmit_charsfunction sunzilog_interruptfunction sunzilog_read_channel_statusfunction sunzilog_tx_emptyfunction sunzilog_get_mctrlfunction sunzilog_set_mctrlfunction sunzilog_stop_txfunction sunzilog_start_txfunction sunzilog_stop_rxfunction sunzilog_enable_msfunction sunzilog_break_ctlfunction __sunzilog_startupfunction sunzilog_startupfunction memoryfunction sunzilog_convert_to_zsfunction sunzilog_set_termiosfunction sunzilog_release_portfunction sunzilog_config_portfunction sunzilog_get_poll_charfunction sunzilog_put_poll_charfunction sunzilog_alloc_tablesfunction sunzilog_free_tablesfunction sunzilog_putcharfunction sunzilog_serio_writefunction sunzilog_serio_openfunction sunzilog_serio_closefunction sunzilog_console_writefunction sunzilog_console_setupfunction sunzilog_init_kbdmsfunction sunzilog_register_seriofunction sunzilog_init_hwfunction zs_probefunction zs_remove_onefunction zs_removefunction sunzilog_initfunction for_each_node_by_namefunction sunzilog_exitmodule init sunzilog_init
Annotated Snippet
module_init(sunzilog_init);
module_exit(sunzilog_exit);
MODULE_AUTHOR("David S. Miller");
MODULE_DESCRIPTION("Sun Zilog serial port driver");
MODULE_VERSION("2.0");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/delay.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/major.h`, `linux/string.h`.
- Detected declarations: `struct uart_sunzilog_port`, `function read_zsreg`, `function write_zsreg`, `function sunzilog_clear_fifo`, `function __load_zsregs`, `function sunzilog_maybe_update_regs`, `function sunzilog_change_mouse_baud`, `function sunzilog_kbdms_receive_chars`, `function sunzilog_receive_chars`, `function sunzilog_status_handle`.
- 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.