1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:37:44 +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

@ -17,6 +17,7 @@ namespace Kernel {
class VirtIORNG final : public CharacterDevice
, public VirtIODevice {
public:
virtual const char* purpose() const override { return class_name(); }
virtual const char* class_name() const override { return m_class_name.characters(); }
virtual bool can_read(const FileDescription&, size_t) const override { return false; }