summaryrefslogtreecommitdiffstats
path: root/src/nvme/private.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:26:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-08-15 12:26:24 +0000
commit4864ced5614f5954f5bcab95e897da9b6824d931 (patch)
tree34f3dbb5bf63c8d3f2e95640aab82eebcbf48b92 /src/nvme/private.h
parentAdding upstream version 1.1~rc0. (diff)
downloadlibnvme-4864ced5614f5954f5bcab95e897da9b6824d931.tar.xz
libnvme-4864ced5614f5954f5bcab95e897da9b6824d931.zip
Adding upstream version 1.1.upstream/1.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nvme/private.h')
-rw-r--r--src/nvme/private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvme/private.h b/src/nvme/private.h
index da699ba..b5610f5 100644
--- a/src/nvme/private.h
+++ b/src/nvme/private.h
@@ -10,6 +10,7 @@
#define _LIBNVME_PRIVATE_H
#include <ccan/list/list.h>
+#include <poll.h>
#include <sys/socket.h>
#include "fabrics.h"
@@ -183,6 +184,7 @@ struct nvme_mi_transport {
struct nvme_mi_resp *resp);
void (*close)(struct nvme_mi_ep *ep);
int (*desc_ep)(struct nvme_mi_ep *ep, char *buf, size_t len);
+ int (*check_timeout)(struct nvme_mi_ep *ep, unsigned int timeout);
};
struct nvme_mi_ep {
@@ -192,6 +194,8 @@ struct nvme_mi_ep {
struct list_node root_entry;
struct list_head controllers;
bool controllers_scanned;
+ unsigned int timeout;
+ unsigned int mprt_max;
};
struct nvme_mi_ctrl {
@@ -213,6 +217,7 @@ struct __mi_mctp_socket_ops {
int (*socket)(int, int, int);
ssize_t (*sendmsg)(int, const struct msghdr *, int);
ssize_t (*recvmsg)(int, struct msghdr *, int);
+ int (*poll)(struct pollfd *, nfds_t, int);
int (*ioctl_tag)(int, unsigned long, struct mctp_ioc_tag_ctl *);
};
void __nvme_mi_mctp_set_ops(const struct __mi_mctp_socket_ops *newops);