drivers/mmc/core/sdio_uart.c
Source file repositories/reference/linux-study-clean/drivers/mmc/core/sdio_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mmc/core/sdio_uart.c- Extension
.c- Size
- 28805 bytes
- Lines
- 1167
- Domain
- Driver Families
- Bucket
- drivers/mmc
- 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/init.hlinux/kernel.hlinux/sched.hlinux/mutex.hlinux/seq_file.hlinux/serial.hlinux/serial_reg.hlinux/circ_buf.hlinux/tty.hlinux/tty_flip.hlinux/kfifo.hlinux/slab.hlinux/mmc/core.hlinux/mmc/card.hlinux/mmc/sdio_func.hlinux/mmc/sdio_ids.h
Detected Declarations
struct uart_icountstruct sdio_uart_portfunction sdio_uart_add_portfunction sdio_uart_port_putfunction sdio_uart_port_removefunction sdio_uart_claim_funcfunction sdio_uart_release_funcfunction sdio_infunction sdio_outfunction sdio_uart_get_mctrlfunction sdio_uart_write_mctrlfunction sdio_uart_update_mctrlfunction sdio_uart_change_speedfunction sdio_uart_start_txfunction sdio_uart_stop_txfunction sdio_uart_stop_rxfunction sdio_uart_receive_charsfunction sdio_uart_transmit_charsfunction sdio_uart_check_modem_statusfunction sdio_uart_irqfunction uart_carrier_raisedfunction uart_dtr_rtsfunction sdio_uart_activatefunction sdio_uart_shutdownfunction sdio_uart_port_destroyfunction datafunction sdio_uart_cleanupfunction sdio_uart_openfunction sdio_uart_closefunction sdio_uart_hangupfunction sdio_uart_writefunction sdio_uart_write_roomfunction sdio_uart_chars_in_bufferfunction sdio_uart_send_xcharfunction sdio_uart_throttlefunction sdio_uart_unthrottlefunction sdio_uart_set_termiosfunction sdio_uart_break_ctlfunction sdio_uart_tiocmgetfunction sdio_uart_tiocmsetfunction sdio_uart_proc_showfunction sdio_uart_probefunction sdio_uart_removefunction sdio_uart_initfunction sdio_uart_exitmodule init sdio_uart_init
Annotated Snippet
module_init(sdio_uart_init);
module_exit(sdio_uart_exit);
MODULE_AUTHOR("Nicolas Pitre");
MODULE_DESCRIPTION("SDIO UART/GPS driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/kernel.h`, `linux/sched.h`, `linux/mutex.h`, `linux/seq_file.h`, `linux/serial.h`, `linux/serial_reg.h`.
- Detected declarations: `struct uart_icount`, `struct sdio_uart_port`, `function sdio_uart_add_port`, `function sdio_uart_port_put`, `function sdio_uart_port_remove`, `function sdio_uart_claim_func`, `function sdio_uart_release_func`, `function sdio_in`, `function sdio_out`, `function sdio_uart_get_mctrl`.
- Atlas domain: Driver Families / drivers/mmc.
- 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.