diff options
author | Liav A <liavalb@gmail.com> | 2021-06-05 07:50:27 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-17 16:53:25 +0200 |
commit | 030999d26976972c676b38a11bcd7674cb3a5e13 (patch) | |
tree | fac819d9e1ce2b09de082afa8cf80d8a6dd15952 /Kernel/Interrupts/SharedIRQHandler.h | |
parent | dcb55db99bcbf3855b0d7eadf79a0d9d356f4d2f (diff) | |
download | serenity-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.h | 2 |
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; } |