diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Storage/NVMe/NVMeNameSpace.h | 4 |
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; |