Kernel: Use IntrusiveList for keeping track of GenericInterruptHandlers

This commit is contained in:
Andreas Kling 2021-07-21 20:21:29 +02:00
commit 79745507a9
Notes: sideshowbarker 2024-07-18 08:37:57 +09:00
3 changed files with 16 additions and 15 deletions

View file

@ -6,8 +6,7 @@
#pragma once
#include <AK/HashTable.h>
#include <AK/String.h>
#include <AK/IntrusiveList.h>
#include <AK/Types.h>
#include <Kernel/Arch/x86/RegisterState.h>
@ -65,5 +64,10 @@ private:
u8 m_interrupt_number { 0 };
bool m_disable_remap { false };
bool m_registered { false };
IntrusiveListNode<GenericInterruptHandler> m_list_node;
public:
using List = IntrusiveList<GenericInterruptHandler, RawPtr<GenericInterruptHandler>, &GenericInterruptHandler::m_list_node>;
};
}