mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
Kernel: Use IntrusiveList for keeping track of GenericInterruptHandlers
This commit is contained in:
parent
a9f76b8270
commit
79745507a9
3 changed files with 16 additions and 15 deletions
|
@ -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>;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue