drivers/usb/class/cdc-acm.c
Source file repositories/reference/linux-study-clean/drivers/usb/class/cdc-acm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/class/cdc-acm.c- Extension
.c- Size
- 60760 bytes
- Lines
- 2181
- 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.
- 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/sched/signal.hlinux/errno.hlinux/init.hlinux/slab.hlinux/log2.hlinux/tty.hlinux/serial.hlinux/tty_driver.hlinux/tty_flip.hlinux/tty_ldisc.hlinux/module.hlinux/mutex.hlinux/uaccess.hlinux/usb.hlinux/usb/cdc.hasm/byteorder.hlinux/unaligned.hlinux/idr.hlinux/list.hcdc-acm.h
Detected Declarations
function acm_alloc_minorfunction acm_release_minorfunction acm_ctrl_msgfunction acm_set_controlfunction acm_poison_urbsfunction acm_unpoison_urbsfunction acm_wb_allocfunction acm_wb_is_availfunction acm_write_donefunction acm_start_wbfunction bmCapabilities_showfunction wCountryCodes_showfunction iCountryCodeRelDate_showfunction acm_process_notificationfunction acm_ctrl_irqfunction acm_submit_read_urbfunction acm_submit_read_urbsfunction acm_process_read_urbfunction acm_read_bulk_callbackfunction acm_write_bulkfunction acm_softintfunction acm_tty_installfunction acm_tty_openfunction acm_port_dtr_rtsfunction acm_port_activatefunction acm_port_destructfunction acm_port_shutdownfunction acm_tty_cleanupfunction acm_tty_hangupfunction acm_tty_closefunction acm_tty_writefunction acm_tty_write_roomfunction acm_tty_flush_bufferfunction acm_tty_chars_in_bufferfunction acm_tty_throttlefunction acm_tty_unthrottlefunction acm_tty_break_ctlfunction acm_tty_tiocmgetfunction acm_tty_tiocmsetfunction get_serial_infofunction set_serial_infofunction wait_serial_changefunction acm_tty_get_icountfunction acm_tty_ioctlfunction acm_tty_set_termiosfunction acm_write_buffers_freefunction acm_read_buffers_freefunction acm_write_buffers_alloc
Annotated Snippet
module_init(acm_init);
module_exit(acm_exit);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
MODULE_ALIAS_CHARDEV_MAJOR(ACM_TTY_MAJOR);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/sched/signal.h`, `linux/errno.h`, `linux/init.h`, `linux/slab.h`, `linux/log2.h`, `linux/tty.h`, `linux/serial.h`.
- Detected declarations: `function acm_alloc_minor`, `function acm_release_minor`, `function acm_ctrl_msg`, `function acm_set_control`, `function acm_poison_urbs`, `function acm_unpoison_urbs`, `function acm_wb_alloc`, `function acm_wb_is_avail`, `function acm_write_done`, `function acm_start_wb`.
- 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.
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.