forked from linux-nvme/nvme-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathno-mi.c
More file actions
39 lines (31 loc) · 792 Bytes
/
no-mi.c
File metadata and controls
39 lines (31 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-License-Identifier: LGPL-2.1-or-later
/*
* This file is part of libnvme.
* Copyright (c) 2026 SUSE Software Solutions
*
* Authors: Daniel Wagner <[email protected]>
*/
#include <errno.h>
#include <libnvme.h>
#include "compiler-attributes.h"
__public const char *libnvme_mi_status_to_string(int status)
{
return "MI support disabled";
}
int __libnvme_transport_handle_open_mi(struct libnvme_transport_handle *hdl,
const char *devname)
{
return -ENOTSUP;
}
int __libnvme_transport_handle_init_mi(struct libnvme_transport_handle *hdl)
{
return -ENOTSUP;
}
void __libnvme_transport_handle_close_mi(struct libnvme_transport_handle *hdl)
{
}
int libnvme_mi_admin_admin_passthru(struct libnvme_transport_handle *hdl,
struct libnvme_passthru_cmd *cmd)
{
return -ENOTSUP;
}