1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +00:00

Kernel/USB: Add get_driver_by_name helper in USBManagement

This commit is contained in:
Jesse Buhagiar 2022-10-21 17:18:27 +11:00 committed by Andrew Kaster
parent 2aa17f619c
commit 3cfdc6e363
2 changed files with 7 additions and 0 deletions

View file

@ -22,6 +22,7 @@ public:
static USBManagement& the();
void register_driver(NonnullLockRefPtr<Driver> driver);
LockRefPtr<Driver> get_driver_by_name(StringView name);
void unregister_driver(NonnullLockRefPtr<Driver> driver);
Vector<NonnullLockRefPtr<Driver>>& available_drivers() { return m_available_drivers; }