summaryrefslogtreecommitdiff
path: root/Kernel/Storage/PATADiskDevice.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/Storage/PATADiskDevice.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/Storage/PATADiskDevice.h')
-rw-r--r--Kernel/Storage/PATADiskDevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Storage/PATADiskDevice.h b/Kernel/Storage/PATADiskDevice.h
index fa19186c6a..f3eeef60bf 100644
--- a/Kernel/Storage/PATADiskDevice.h
+++ b/Kernel/Storage/PATADiskDevice.h
@@ -61,6 +61,7 @@ public:
// ^BlockDevice
virtual void start_request(AsyncBlockDeviceRequest&) override;
+ virtual String device_name() const override;
private:
PATADiskDevice(const IDEController&, IDEChannel&, DriveType, u8, u8, u8, int major, int minor);