summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-04-22 18:18:43 +0300
committerAndreas Kling <kling@serenityos.org>2022-07-15 12:29:23 +0200
commitb49af59b4a3920b912ed6d06b2c8ba8c10492854 (patch)
tree811c1974a503bcc12b6d5f561e30a61092390277 /Kernel
parent7db6b77e7545f4224a4ebd2f0a97b753d291b4de (diff)
downloadserenity-b49af59b4a3920b912ed6d06b2c8ba8c10492854.zip
Kernel/Storage: Declare NVMeNameSpace constructor as private
Also, don't mark it as explicit.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Storage/NVMe/NVMeNameSpace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Storage/NVMe/NVMeNameSpace.h b/Kernel/Storage/NVMe/NVMeNameSpace.h
index 1890d71460..e14a2b79df 100644
--- a/Kernel/Storage/NVMe/NVMeNameSpace.h
+++ b/Kernel/Storage/NVMe/NVMeNameSpace.h
@@ -20,15 +20,17 @@
namespace Kernel {
class NVMeNameSpace : public StorageDevice {
+ friend class DeviceManagement;
public:
static ErrorOr<NonnullRefPtr<NVMeNameSpace>> try_create(NonnullRefPtrVector<NVMeQueue> queues, u8 controller_id, u16 nsid, size_t storage_size, size_t lba_size);
- explicit NVMeNameSpace(NonnullRefPtrVector<NVMeQueue> queues, size_t storage_size, size_t lba_size, size_t major_number, size_t minor_number, u16 nsid, NonnullOwnPtr<KString> early_device_name);
CommandSet command_set() const override { return CommandSet::NVMe; };
void start_request(AsyncBlockDeviceRequest& request) override;
private:
+ NVMeNameSpace(NonnullRefPtrVector<NVMeQueue> queues, size_t storage_size, size_t lba_size, size_t major_number, size_t minor_number, u16 nsid, NonnullOwnPtr<KString> early_device_name);
+
virtual InterfaceType interface_type() const override { return InterfaceType::NVMe; }
u16 m_nsid;
NonnullRefPtrVector<NVMeQueue> m_queues;