drivers/tty/serial/sunsab.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/sunsab.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/sunsab.c- Extension
.c- Size
- 30074 bytes
- Lines
- 1160
- 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/tty.hlinux/tty_flip.hlinux/major.hlinux/string.hlinux/ptrace.hlinux/ioport.hlinux/circ_buf.hlinux/serial.hlinux/sysrq.hlinux/console.hlinux/spinlock.hlinux/slab.hlinux/delay.hlinux/init.hlinux/of.hlinux/platform_device.hlinux/io.hasm/irq.hasm/prom.hasm/setup.hlinux/serial_core.hlinux/sunserialcore.hsunsab.h
Detected Declarations
struct uart_sunsab_portfunction sunsab_tec_waitfunction sunsab_cec_waitfunction receive_charsfunction transmit_charsfunction check_statusfunction sunsab_interruptfunction sunsab_tx_emptyfunction sunsab_set_mctrlfunction sunsab_get_mctrlfunction sunsab_stop_txfunction sunsab_tx_idlefunction sunsab_start_txfunction sunsab_send_xcharfunction sunsab_stop_rxfunction sunsab_break_ctlfunction sunsab_startupfunction sunsab_shutdownfunction calc_ebrgfunction sunsab_convert_to_sabfunction sunsab_set_termiosfunction sunsab_release_portfunction sunsab_config_portfunction sunsab_console_putcharfunction sunsab_console_writefunction sunsab_console_setupfunction sunsab_init_onefunction sab_probefunction sab_removefunction sunsab_initfunction sunsab_exitmodule init sunsab_init
Annotated Snippet
module_init(sunsab_init);
module_exit(sunsab_exit);
MODULE_AUTHOR("Eddie C. Dost and David S. Miller");
MODULE_DESCRIPTION("Sun SAB82532 serial port driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/major.h`, `linux/string.h`, `linux/ptrace.h`.
- Detected declarations: `struct uart_sunsab_port`, `function sunsab_tec_wait`, `function sunsab_cec_wait`, `function receive_chars`, `function transmit_chars`, `function check_status`, `function sunsab_interrupt`, `function sunsab_tx_empty`, `function sunsab_set_mctrl`, `function sunsab_get_mctrl`.
- 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.