summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts/SharedIRQHandler.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-06-05 07:50:27 +0300
committerAndreas Kling <kling@serenityos.org>2021-06-17 16:53:25 +0200
commit030999d26976972c676b38a11bcd7674cb3a5e13 (patch)
treefac819d9e1ce2b09de082afa8cf80d8a6dd15952 /Kernel/Interrupts/SharedIRQHandler.h
parentdcb55db99bcbf3855b0d7eadf79a0d9d356f4d2f (diff)
downloadserenity-030999d26976972c676b38a11bcd7674cb3a5e13.zip
Kernel/Interrupts: Enumerate nested handlers in a shared handler
When asked to enumerate all interrupt handlers, display all shared handlers within it instead of just returning the responsible handler of them.
Diffstat (limited to 'Kernel/Interrupts/SharedIRQHandler.h')
-rw-r--r--Kernel/Interrupts/SharedIRQHandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Interrupts/SharedIRQHandler.h b/Kernel/Interrupts/SharedIRQHandler.h
index bb68075656..86272a1623 100644
--- a/Kernel/Interrupts/SharedIRQHandler.h
+++ b/Kernel/Interrupts/SharedIRQHandler.h
@@ -26,6 +26,8 @@ public:
virtual bool eoi() override;
+ void enumerate_handlers(Function<void(GenericInterruptHandler&)>&);
+
virtual size_t sharing_devices_count() const override { return m_handlers.size(); }
virtual bool is_shared_handler() const override { return true; }
virtual bool is_sharing_with_others() const override { return false; }