blob: ead294f97c6745f12070e94b891e877119c0cc30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* -------------------------------------------
Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
------------------------------------------- */
#include <StorageKit/NVME.h>
namespace Kernel {
NVMEDeviceInterface::NVMEDeviceInterface(
void (*out)(DeviceInterface*, IMountpoint* outpacket),
void (*in)(DeviceInterface*, IMountpoint* inpacket), void (*cleanup)(void))
: DeviceInterface(out, in), fCleanup(cleanup) {}
NVMEDeviceInterface::~NVMEDeviceInterface() {
if (fCleanup) fCleanup();
}
const Char* NVMEDeviceInterface::Name() const {
return ("/devices/nvme{}");
}
} // namespace Kernel
|