summaryrefslogtreecommitdiffstats
path: root/src/nvme/private.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:05:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:05:53 +0000
commitcdb4f2853e722392481f9b3b52dd175dfeffec5a (patch)
tree156a2dcee1cbe550b5014eb6a0833a1cee6bda65 /src/nvme/private.h
parentReleasing debian version 1.8-3. (diff)
downloadlibnvme-cdb4f2853e722392481f9b3b52dd175dfeffec5a.tar.xz
libnvme-cdb4f2853e722392481f9b3b52dd175dfeffec5a.zip
Merging upstream version 1.9.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nvme/private.h')
-rw-r--r--src/nvme/private.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/nvme/private.h b/src/nvme/private.h
index 3505802..dec3d85 100644
--- a/src/nvme/private.h
+++ b/src/nvme/private.h
@@ -17,9 +17,12 @@
#include "mi.h"
-char *nvme_ctrl_sysfs_dir(void);
-char *nvme_subsys_sysfs_dir(void);
-char *nvme_ns_sysfs_dir(void);
+const char *nvme_subsys_sysfs_dir(void);
+const char *nvme_ctrl_sysfs_dir(void);
+const char *nvme_ns_sysfs_dir(void);
+const char *nvme_slots_sysfs_dir(void);
+const char *nvme_uuid_ibm_filename(void);
+const char *nvme_dmi_entries_dir(void);
struct nvme_path {
struct list_node entry;
@@ -83,6 +86,7 @@ struct nvme_ctrl {
char *dhchap_key;
char *dhchap_ctrl_key;
char *cntrltype;
+ char *cntlid;
char *dctype;
char *phy_slot;
bool discovery_ctrl;
@@ -185,6 +189,8 @@ nvme_ctrl_t __nvme_lookup_ctrl(nvme_subsystem_t s, const char *transport,
void *__nvme_alloc(size_t len);
+void *__nvme_realloc(void *p, size_t len);
+
#if (LOG_FUNCNAME == 1)
#define __nvme_log_func __func__
#else
@@ -286,4 +292,7 @@ struct __mi_mctp_socket_ops {
};
void __nvme_mi_mctp_set_ops(const struct __mi_mctp_socket_ops *newops);
+#define SECTOR_SIZE 512
+#define SECTOR_SHIFT 9
+
#endif /* _LIBNVME_PRIVATE_H */