blob: 077595cf4c37d99dcf0124d04023dbf82e9d953b (
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, all rights reserved.
------------------------------------------- */
#include <StorageKit/NVME.h>
namespace Kernel {
NVMEDeviceInterface::NVMEDeviceInterface(
void (*out)(DeviceInterface*, MountpointInterface* outpacket),
void (*in)(DeviceInterface*, MountpointInterface* inpacket), void (*cleanup)(void))
: DeviceInterface(out, in), fCleanup(cleanup) {}
NVMEDeviceInterface::~NVMEDeviceInterface() {
if (fCleanup) fCleanup();
}
const Char* NVMEDeviceInterface::Name() const {
return ("/devices/nvme{}");
}
} // namespace Kernel
|