mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel/Storage: Declare NVMeNameSpace constructor as private
Also, don't mark it as explicit.
This commit is contained in:
parent
7db6b77e75
commit
b49af59b4a
Notes:
sideshowbarker
2024-07-17 08:56:24 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/b49af59b4a Pull-request: https://github.com/SerenityOS/serenity/pull/13779
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue