1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-16 07:51:01 +00:00
serenity/Kernel/Bus/USB
Jesse Buhagiar af31253a16 Kernel: Use try_create not must_create in SysFSUSB::create
The function `KString::must_create()` can only be enforced
during early boot (that is, when `g_in_early_boot` is true), hence
the use of this function during runtime causes a `VERIFY` to assert,
leading to a Kernel Panic.
We should instead use `TRY()` along with `try_create()` to prevent
this from crashing whenever a USB device is inserted into the system,
and we don't have enough memory to allocate the device's KString.
2022-01-03 10:39:56 +02:00
..
UHCI Kernel: Some clang-tidy fixes in Bus/USB 2021-12-09 22:53:42 -08:00
PacketTypes.h Kernel/USB: Move the USB components as a subfolder to the Bus directory 2021-07-02 13:16:12 +02:00
SysFSUSB.cpp Kernel: Use try_create not must_create in SysFSUSB::create 2022-01-03 10:39:56 +02:00
SysFSUSB.h Kernel: Use try_create not must_create in SysFSUSB::create 2022-01-03 10:39:56 +02:00
USBClasses.h Kernel/USB: Add header containing all the current USB classes 2021-08-14 21:22:44 +02:00
USBConstants.h Kernel/USB: Add Hubs and the UHCI Root Hub 2021-08-14 21:22:44 +02:00
USBController.cpp Kernel/USB: Create controller base class and introduce USBManagement 2021-08-09 21:05:25 +02:00
USBController.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
USBDescriptors.h Kernel/USB: Add Hubs and the UHCI Root Hub 2021-08-14 21:22:44 +02:00
USBDevice.cpp Kernel: Remove unused String.h includes 2021-12-11 13:15:26 -08:00
USBDevice.h Kernel: Some clang-tidy fixes in Bus/USB 2021-12-09 22:53:42 -08:00
USBEndpoint.h Kernel/USB: Use "Pipe" instead of "USBPipe" in USBEndpoint 2021-08-14 21:22:44 +02:00
USBHub.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
USBHub.h Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
USBManagement.cpp Kernel/PCI: Remove Address from enumeration callback 2021-09-29 11:24:33 +02:00
USBManagement.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
USBPipe.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
USBPipe.h Kernel: Some clang-tidy fixes in Bus/USB 2021-12-09 22:53:42 -08:00
USBRequest.h Kernel/USB: Add all USB 2.0 bmRequestType fields 2021-08-14 21:22:44 +02:00
USBTransfer.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
USBTransfer.h Kernel: Mark USBTransfer's constructor as private 2021-12-09 22:53:42 -08:00