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

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

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

#include <StorageKit/NVME.h>

namespace Kernel {
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 Kernel