blob: f05d384e49a8ca412f23e00d347d5781bc62dc51 (
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
|