summaryrefslogtreecommitdiff
path: root/Kernel/Net/E1000NetworkAdapter.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-06-05 09:00:18 +0300
committerAndreas Kling <kling@serenityos.org>2021-06-17 16:53:25 +0200
commitb91df26d4a14c2721d1920e76552012864c97790 (patch)
treef9b83151fe424057cbc7bbdd1e1b389387a601b7 /Kernel/Net/E1000NetworkAdapter.h
parent7a6d5a7b8bae2e2058c72b662c4cccec99374b11 (diff)
downloadserenity-b91df26d4a14c2721d1920e76552012864c97790.zip
Kernel/Interrupts: Return boolean on whether we handled the interrupt
If we are in a shared interrupt handler, the called handlers might indicate it was not their interrupt, so we should not increment the call counter of these handlers.
Diffstat (limited to 'Kernel/Net/E1000NetworkAdapter.h')
-rw-r--r--Kernel/Net/E1000NetworkAdapter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/E1000NetworkAdapter.h b/Kernel/Net/E1000NetworkAdapter.h
index 21389fc412..b2533f7995 100644
--- a/Kernel/Net/E1000NetworkAdapter.h
+++ b/Kernel/Net/E1000NetworkAdapter.h
@@ -36,7 +36,7 @@ protected:
void setup_link();
E1000NetworkAdapter(PCI::Address, u8 irq);
- virtual void handle_irq(const RegisterState&) override;
+ virtual bool handle_irq(const RegisterState&) override;
virtual const char* class_name() const override { return "E1000NetworkAdapter"; }
struct [[gnu::packed]] e1000_rx_desc {