1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Store process names as KString

This commit is contained in:
Andreas Kling 2021-09-07 12:53:28 +02:00
parent db2e67fd53
commit 55b0b06897
15 changed files with 46 additions and 32 deletions

View file

@ -472,7 +472,11 @@ void UHCIController::spawn_port_proc()
{
RefPtr<Thread> usb_hotplug_thread;
Process::create_kernel_process(usb_hotplug_thread, "UHCIHotplug", [&] {
auto process_name = KString::try_create("UHCI hotplug");
if (process_name.is_error())
TODO();
Process::create_kernel_process(usb_hotplug_thread, process_name.release_value(), [&] {
for (;;) {
if (m_root_hub)
m_root_hub->check_for_port_updates();