drivers/usb/gadget

USB Gadget subsystem

The framework that lets a Linux device act as a USB peripheral rather than a USB host, so that boards like Raspberry Pi Zero, Android phones, embedded gadgets, and development boards can present themselves to a PC as a network adapter, mass storage device, serial port, MIDI device, webcam, or composite combination of these.

not-a-driver conf=1.00 deploy=none replacement=none subsystem=usb category=not-a-driver
100%

recommendation

This is not a single driver but an entire subsystem tree. It contains the libcomposite core framework, a collection of function drivers (mass storage, Ethernet, serial, audio, HID, etc.), legacy gadget configurations, and the USB device controller drivers that talk to actual silicon. Each component would need to be evaluated on its own; the directory as a whole is core Linux infrastructure used by countless embedded and mobile systems.

repository signals

172 files
146,140 source lines
899 commits, 5y
+29,236 / −22,911 lines added / removed, 5y
260 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 899 total · active in 61/61 months
2021 2022 2023 2024 2025 2026 2021-04: 7 commits · +29 −16 2021-05: 24 commits · +174 −110 2021-06: 23 commits · +688 −177 2021-07: 23 commits · +1,800 −163 2021-08: 17 commits · +262 −155 2021-09: 12 commits · +163 −54 2021-10: 26 commits · +321 −146 2021-11: 12 commits · +104 −54 2021-12: 12 commits · +141 −41 2022-01: 33 commits · +1,034 −261 2022-02: 6 commits · +62 −58 2022-03: 37 commits · +260 −193 2022-04: 22 commits · +399 −334 2022-05: 10 commits · +1,675 −16 2022-06: 15 commits · +150 −82 2022-07: 11 commits · +86 −34 2022-08: 12 commits · +188 −98 2022-09: 17 commits · +398 −3,732 2022-10: 11 commits · +89 −1,572 2022-11: 19 commits · +108 −119 2022-12: 9 commits · +81 −42 2023-01: 20 commits · +4,119 −159 2023-02: 34 commits · +1,414 −214 2023-03: 20 commits · +378 −197 2023-04: 7 commits · +113 −51 2023-05: 32 commits · +154 −217 2023-06: 16 commits · +5,028 −116 2023-07: 19 commits · +3,195 −214 2023-08: 22 commits · +163 −230 2023-09: 10 commits · +101 −31 2023-10: 19 commits · +124 −90 2023-11: 16 commits · +430 −183 2023-12: 14 commits · +538 −196 2024-01: 9 commits · +556 −34 2024-02: 14 commits · +113 −71 2024-03: 14 commits · +130 −129 2024-04: 14 commits · +150 −82 2024-05: 2 commits · +14 −14 2024-06: 7 commits · +64 −15 2024-07: 9 commits · +95 −30 2024-08: 14 commits · +513 −138 2024-09: 14 commits · +442 −179 2024-10: 14 commits · +375 −172 2024-11: 6 commits · +47 −33 2024-12: 34 commits · +576 −213 2025-01: 7 commits · +47 −30 2025-02: 9 commits · +24 −20 2025-03: 9 commits · +52 −36 2025-04: 10 commits · +171 −10,716 2025-05: 8 commits · +21 −14 2025-06: 13 commits · +21 −107 2025-07: 9 commits · +25 −18 2025-08: 10 commits · +31 −83 2025-09: 13 commits · +182 −210 2025-10: 3 commits · +19 −3 2025-11: 11 commits · +99 −37 2025-12: 10 commits · +520 −198 2026-01: 11 commits · +108 −90 2026-02: 10 commits · +342 −332 2026-03: 22 commits · +464 −514 2026-04: 1 commit · +37 −10

sources

No sources cited.

codex reasoning notes (technical)

Not a driver directory: umbrella USB gadget subsystem containing libcomposite framework code plus multiple function/legacy/udc drivers, not one kernel-bound hardware driver