drivers/usb/misc/usb251xb.c
Source file repositories/reference/linux-study-clean/drivers/usb/misc/usb251xb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/misc/usb251xb.c- Extension
.c- Size
- 23696 bytes
- Lines
- 835
- 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/delay.hlinux/gpio/consumer.hlinux/gpio/driver.hlinux/i2c.hlinux/module.hlinux/nls.hlinux/of.hlinux/platform_device.hlinux/regulator/consumer.hlinux/slab.h
Detected Declarations
struct usb251xbstruct usb251xb_datafunction usb251xb_check_dev_childrenfunction usb251x_check_gpio_chipfunction usb251x_check_gpio_chipfunction usb251xb_resetfunction usb251xb_connectfunction usb251xb_get_ports_fieldfunction of_property_for_each_u32function usb251xb_get_ofdatafunction usb251xb_regulator_disable_actionfunction usb251xb_probefunction usb251xb_i2c_probefunction usb251xb_suspendfunction usb251xb_resumefunction usb251xb_i2c_suspendfunction usb251xb_i2c_resumefunction usb251xb_plat_probefunction usb251xb_plat_suspendfunction usb251xb_plat_resumefunction usb251xb_initfunction usb251xb_exitmodule init usb251xb_init
Annotated Snippet
module_init(usb251xb_init);
static void __exit usb251xb_exit(void)
{
platform_driver_unregister(&usb251xb_plat_driver);
i2c_del_driver(&usb251xb_i2c_driver);
}
module_exit(usb251xb_exit);
MODULE_AUTHOR("Richard Leitner <richard.leitner@skidata.com>");
MODULE_DESCRIPTION("USB251x/xBi USB 2.0 Hub Controller Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/gpio/consumer.h`, `linux/gpio/driver.h`, `linux/i2c.h`, `linux/module.h`, `linux/nls.h`, `linux/of.h`, `linux/platform_device.h`.
- Detected declarations: `struct usb251xb`, `struct usb251xb_data`, `function usb251xb_check_dev_children`, `function usb251x_check_gpio_chip`, `function usb251x_check_gpio_chip`, `function usb251xb_reset`, `function usb251xb_connect`, `function usb251xb_get_ports_field`, `function of_property_for_each_u32`, `function usb251xb_get_ofdata`.
- 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.