drivers/tty/serial/rda-uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/rda-uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/rda-uart.c- Extension
.c- Size
- 20282 bytes
- Lines
- 814
- 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.
- 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/clk.hlinux/console.hlinux/delay.hlinux/io.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/serial.hlinux/serial_core.hlinux/tty.hlinux/tty_flip.h
Detected Declarations
struct rda_uart_portfunction rda_uart_writefunction rda_uart_readfunction rda_uart_tx_emptyfunction rda_uart_get_mctrlfunction rda_uart_set_mctrlfunction rda_uart_stop_txfunction rda_uart_stop_rxfunction rda_uart_start_txfunction rda_uart_change_baudratefunction rda_uart_set_termiosfunction rda_uart_send_charsfunction rda_uart_receive_charsfunction rda_interruptfunction rda_uart_startupfunction rda_uart_shutdownfunction rda_uart_request_portfunction rda_uart_config_portfunction rda_uart_release_portfunction rda_uart_verify_portfunction rda_console_putcharfunction rda_uart_port_writefunction rda_uart_console_writefunction rda_uart_console_setupfunction rda_uart_console_initfunction rda_uart_early_console_writefunction rda_uart_early_console_setupfunction rda_uart_probefunction rda_uart_removefunction rda_uart_initfunction rda_uart_exitmodule init rda_uart_init
Annotated Snippet
module_init(rda_uart_init);
module_exit(rda_uart_exit);
MODULE_AUTHOR("Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>");
MODULE_DESCRIPTION("RDA8810PL serial device driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/console.h`, `linux/delay.h`, `linux/io.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/serial.h`.
- Detected declarations: `struct rda_uart_port`, `function rda_uart_write`, `function rda_uart_read`, `function rda_uart_tx_empty`, `function rda_uart_get_mctrl`, `function rda_uart_set_mctrl`, `function rda_uart_stop_tx`, `function rda_uart_stop_rx`, `function rda_uart_start_tx`, `function rda_uart_change_baudrate`.
- Atlas domain: Driver Families / drivers/tty.
- Implementation status: integration implementation candidate.
- 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.