summaryrefslogtreecommitdiffstats
path: root/src/nvme/private.h
diff options
context:
space:
mode:
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);