drivers/usb/misc/usb3503.c
Source file repositories/reference/linux-study-clean/drivers/usb/misc/usb3503.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/misc/usb3503.c- Extension
.c- Size
- 10524 bytes
- Lines
- 461
- 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
linux/clk.hlinux/i2c.hlinux/gpio/consumer.hlinux/delay.hlinux/slab.hlinux/module.hlinux/platform_device.hlinux/platform_data/usb3503.hlinux/regmap.h
Detected Declarations
struct usb3503function usb3503_connectfunction usb3503_switch_modefunction usb3503_probefunction usb3503_i2c_probefunction usb3503_i2c_removefunction usb3503_platform_probefunction usb3503_platform_removefunction usb3503_suspendfunction usb3503_resumefunction usb3503_i2c_suspendfunction usb3503_i2c_resumefunction usb3503_platform_suspendfunction usb3503_platform_resumefunction usb3503_initfunction usb3503_exitmodule init usb3503_init
Annotated Snippet
module_init(usb3503_init);
static void __exit usb3503_exit(void)
{
platform_driver_unregister(&usb3503_platform_driver);
i2c_del_driver(&usb3503_i2c_driver);
}
module_exit(usb3503_exit);
MODULE_AUTHOR("Dongjin Kim <tobetter@gmail.com>");
MODULE_DESCRIPTION("USB3503 USB HUB driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/i2c.h`, `linux/gpio/consumer.h`, `linux/delay.h`, `linux/slab.h`, `linux/module.h`, `linux/platform_device.h`, `linux/platform_data/usb3503.h`.
- Detected declarations: `struct usb3503`, `function usb3503_connect`, `function usb3503_switch_mode`, `function usb3503_probe`, `function usb3503_i2c_probe`, `function usb3503_i2c_remove`, `function usb3503_platform_probe`, `function usb3503_platform_remove`, `function usb3503_suspend`, `function usb3503_resume`.
- 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.