drivers/tty/serial/sunsu.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/sunsu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/sunsu.c- Extension
.c- Size
- 38051 bytes
- Lines
- 1585
- 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/spinlock.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/slab.hlinux/serio.hlinux/serial_reg.hlinux/init.hlinux/delay.hlinux/of.hlinux/platform_device.hlinux/io.hasm/irq.hasm/setup.hlinux/serial_core.hlinux/sunserialcore.h
Detected Declarations
struct serial_uart_configstruct uart_sunsu_portenum su_typefunction serial_infunction serial_outfunction serial_icr_writefunction __enable_rsafunction enable_rsafunction disable_rsafunction __stop_txfunction sunsu_stop_txfunction sunsu_start_txfunction sunsu_stop_rxfunction sunsu_enable_msfunction receive_charsfunction transmit_charsfunction check_modem_statusfunction sunsu_serial_interruptfunction sunsu_change_mouse_baudfunction receive_kbd_ms_charsfunction sunsu_kbd_ms_interruptfunction sunsu_tx_emptyfunction sunsu_get_mctrlfunction sunsu_set_mctrlfunction sunsu_break_ctlfunction sunsu_startupfunction sunsu_shutdownfunction sunsu_change_speedfunction sunsu_set_termiosfunction sunsu_release_portfunction sunsu_config_portfunction sunsu_verify_portfunction sunsu_typefunction sunsu_serio_writefunction sunsu_serio_openfunction sunsu_serio_closefunction sunsu_autoconfigfunction sunsu_kbd_ms_initfunction wait_for_xmitrfunction sunsu_console_putcharfunction sunsu_console_writefunction sunsu_console_setupfunction su_get_typefunction su_probefunction su_removefunction sunsu_initfunction for_each_node_by_namefunction sunsu_exit
Annotated Snippet
module_init(sunsu_init);
module_exit(sunsu_exit);
MODULE_AUTHOR("Eddie C. Dost, Peter Zaitcev, and David S. Miller");
MODULE_DESCRIPTION("Sun SU serial port driver");
MODULE_VERSION("2.0");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/spinlock.h`, `linux/errno.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/major.h`, `linux/string.h`.
- Detected declarations: `struct serial_uart_config`, `struct uart_sunsu_port`, `enum su_type`, `function serial_in`, `function serial_out`, `function serial_icr_write`, `function __enable_rsa`, `function enable_rsa`, `function disable_rsa`, `function __stop_tx`.
- 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.