1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

Kernel/Interrupts: Add sensible purposes to VirtIO and USB devices

When we enumerate the interrupt handlers, it's a good idea to show a
meaningful name to the user instead of "IRQ Handler".
This commit is contained in:
Liav A 2021-06-05 07:52:35 +03:00 committed by Andreas Kling
parent 030999d269
commit c802b1a363
3 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,8 @@ public:
VirtIOConsole(PCI::Address);
virtual ~VirtIOConsole() override;
virtual const char* purpose() const override { return class_name(); }
private:
constexpr static size_t RINGBUFFER_SIZE = 2 * PAGE_SIZE;
virtual const char* class_name() const override { return m_class_name.characters(); }