Kernel/Storage: Declare NVMeNameSpace constructor as private

Also, don't mark it as explicit.
This commit is contained in:
Liav A 2022-04-22 18:18:43 +03:00 committed by Andreas Kling
parent 7db6b77e75
commit b49af59b4a
Notes: sideshowbarker 2024-07-17 08:56:24 +09:00

View file

@ -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;