summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/Storage/NVMEDeviceInterface.cc
blob: 0b8043b79df90cef459352665fbadf1e711fd5b0 (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*, 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