From 4864ced5614f5954f5bcab95e897da9b6824d931 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Aug 2022 14:26:24 +0200 Subject: Adding upstream version 1.1. Signed-off-by: Daniel Baumann --- src/nvme/private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nvme/private.h') 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 +#include #include #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); -- cgit v1.2.3