drivers/usb/usbip/usbip_common.c
Source file repositories/reference/linux-study-clean/drivers/usb/usbip/usbip_common.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/usbip/usbip_common.c- Extension
.c- Size
- 23856 bytes
- Lines
- 921
- 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.
- 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
asm/byteorder.hlinux/file.hlinux/fs.hlinux/kernel.hlinux/slab.hlinux/stat.hlinux/module.hlinux/moduleparam.hnet/sock.husbip_common.h
Detected Declarations
struct urb_to_usbip_flagsfunction usbip_debug_showfunction usbip_debug_storefunction usbip_dump_bufferfunction usbip_dump_pipefunction usbip_dump_usb_devicefunction usbip_dump_request_typefunction usbip_dump_usb_ctrlrequestfunction usbip_dump_urbfunction usbip_dump_headerfunction usbip_recvfunction tweak_transfer_flagsfunction urb_to_usbipfunction usbip_to_urbfunction usbip_pack_cmd_submitfunction usbip_pack_ret_submitfunction usbip_pack_pdufunction correct_endian_basicfunction correct_endian_cmd_submitfunction correct_endian_ret_submitfunction correct_endian_cmd_unlinkfunction correct_endian_ret_unlinkfunction usbip_header_correct_endianfunction usbip_iso_packet_correct_endianfunction usbip_pack_isofunction usbip_alloc_iso_desc_pdufunction usbip_recv_isofunction usbip_pad_isofunction usbip_recv_xbufffunction for_each_sgfunction usbip_core_initfunction usbip_core_exitmodule init usbip_core_initexport usbip_debug_flagexport dev_attr_usbip_debugexport usbip_dump_urbexport usbip_dump_headerexport usbip_recvexport usbip_pack_pduexport usbip_header_correct_endianexport usbip_alloc_iso_desc_pduexport usbip_recv_isoexport usbip_pad_isoexport usbip_recv_xbuff
Annotated Snippet
module_init(usbip_core_init);
module_exit(usbip_core_exit);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `asm/byteorder.h`, `linux/file.h`, `linux/fs.h`, `linux/kernel.h`, `linux/slab.h`, `linux/stat.h`, `linux/module.h`, `linux/moduleparam.h`.
- Detected declarations: `struct urb_to_usbip_flags`, `function usbip_debug_show`, `function usbip_debug_store`, `function usbip_dump_buffer`, `function usbip_dump_pipe`, `function usbip_dump_usb_device`, `function usbip_dump_request_type`, `function usbip_dump_usb_ctrlrequest`, `function usbip_dump_urb`, `function usbip_dump_header`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration implementation candidate.
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.