summaryrefslogtreecommitdiff
path: root/Kernel/Devices/RandomDevice.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-01-21 18:49:56 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:17:39 +0100
commitf64e287b82fceb81c843bdaf6bad4e608330ae60 (patch)
treec7e326d98481975f97eac54c91bc7d9f24770e9f /Kernel/Devices/RandomDevice.h
parenta2601e13088d61b796220dbb1085ec74a3f6d9fd (diff)
downloadserenity-f64e287b82fceb81c843bdaf6bad4e608330ae60.zip
Kernel: Make device generate their own names
Besides removing the monolithic DevFSDeviceInode::determine_name() method, being able to determine a device's name inside the /dev hierarchy outside of DevFS has its uses.
Diffstat (limited to 'Kernel/Devices/RandomDevice.h')
-rw-r--r--Kernel/Devices/RandomDevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Devices/RandomDevice.h b/Kernel/Devices/RandomDevice.h
index fbf5bbaf7b..04ba907cf1 100644
--- a/Kernel/Devices/RandomDevice.h
+++ b/Kernel/Devices/RandomDevice.h
@@ -38,6 +38,7 @@ public:
// ^Device
virtual mode_t required_mode() const override { return 0666; }
+ virtual String device_name() const override { return "random"; }
private:
// ^CharacterDevice