summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/Storage/NVMEDeviceInterface.cc
blob: 3e2c2c5378ff72f64a6b04993305048e3259e98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* -------------------------------------------

	Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.

------------------------------------------- */

#include <StorageKit/NVME.h>

namespace NeOS
{
	NVMEDeviceInterface::NVMEDeviceInterface(void (*out)(IDeviceObject*, MountpointInterface* outpacket),
											 void (*in)(IDeviceObject*, MountpointInterface* inpacket),
											 void (*cleanup)(void))
		: IDeviceObject(out, in), fCleanup(cleanup)
	{
	}

	NVMEDeviceInterface::~NVMEDeviceInterface()
	{
		if (fCleanup)
			fCleanup();
	}

	const Char* NVMEDeviceInterface::Name() const
	{
		return ("/dev/nvme{}");
	}
} // namespace NeOS