drivers/usb/serial/f81232.c
Source file repositories/reference/linux-study-clean/drivers/usb/serial/f81232.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/serial/f81232.c- Extension
.c- Size
- 26422 bytes
- Lines
- 1081
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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/kernel.hlinux/errno.hlinux/slab.hlinux/tty.hlinux/tty_driver.hlinux/tty_flip.hlinux/serial.hlinux/module.hlinux/moduleparam.hlinux/mutex.hlinux/uaccess.hlinux/usb.hlinux/usb/serial.hlinux/serial_reg.h
Detected Declarations
struct f81232_privatefunction calc_baud_divisorfunction f81232_get_registerfunction f81232_set_registerfunction f81232_set_mask_registerfunction f81232_read_msrfunction f81232_set_mctrlfunction f81232_update_line_statusfunction f81232_read_int_callbackfunction f81232_handle_lsrfunction f81232_process_read_urbfunction f81534a_process_read_urbfunction f81232_break_ctlfunction f81232_find_clkfunction f81232_set_baudratefunction f81232_port_enablefunction f81232_port_disablefunction f81232_set_termiosfunction f81232_tiocmgetfunction f81232_tiocmsetfunction f81232_openfunction f81534a_openfunction f81232_closefunction f81232_dtr_rtsfunction f81232_tx_emptyfunction f81232_carrier_raisedfunction f81232_get_serialfunction f81232_interrupt_workfunction f81232_lsr_workerfunction f81534a_ctrl_set_registerfunction f81534a_ctrl_get_registerfunction f81534a_ctrl_enable_all_portsfunction f81534a_ctrl_probefunction f81534a_ctrl_disconnectfunction f81534a_ctrl_resumefunction f81232_port_probefunction f81534a_port_probefunction f81232_suspendfunction f81232_resumefunction f81232_initfunction f81232_exitmodule init f81232_init
Annotated Snippet
module_init(f81232_init);
module_exit(f81232_exit);
MODULE_DESCRIPTION("Fintek F81232/532A/534A/535/536 USB to serial driver");
MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@linuxfoundation.org>");
MODULE_AUTHOR("Peter Hong <peter_hong@fintek.com.tw>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/errno.h`, `linux/slab.h`, `linux/tty.h`, `linux/tty_driver.h`, `linux/tty_flip.h`, `linux/serial.h`, `linux/module.h`.
- Detected declarations: `struct f81232_private`, `function calc_baud_divisor`, `function f81232_get_register`, `function f81232_set_register`, `function f81232_set_mask_register`, `function f81232_read_msr`, `function f81232_set_mctrl`, `function f81232_update_line_status`, `function f81232_read_int_callback`, `function f81232_handle_lsr`.
- Atlas domain: Driver Families / drivers/usb.
- 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.