diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-10-20 04:41:12 -0400 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-10-20 04:41:12 -0400 |
commit | 43d9c55609c28128559c2c062da43e8d558f4382 (patch) | |
tree | 4c5c00aac9dc7237f076e9b59bed1b381d870a78 /lib | |
parent | cb1b0e1a569d5eb1674991d199c5e9eff926c703 (diff) | |
download | libvfio-user-43d9c55609c28128559c2c062da43e8d558f4382.zip libvfio-user-43d9c55609c28128559c2c062da43e8d558f4382.tar.gz libvfio-user-43d9c55609c28128559c2c062da43e8d558f4382.tar.bz2 |
remove unused function send_response
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmuser.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c index 4211ab6..3a1a979 100644 --- a/lib/libmuser.c +++ b/lib/libmuser.c @@ -190,13 +190,6 @@ get_request_kernel(lm_ctx_t *lm_ctx, struct vfio_user_header *cmd, } static int -send_response_kernel(lm_ctx_t *lm_ctx, struct vfio_user_header *cmd) -{ - assert(false); - return ioctl(lm_ctx->fd, MUSER_DEV_CMD_DONE, &cmd); -} - -static int init_sock(lm_ctx_t *lm_ctx) { struct sockaddr_un addr = { .sun_family = AF_UNIX }; @@ -580,12 +573,6 @@ get_request_sock(lm_ctx_t *lm_ctx, struct vfio_user_header *hdr, return ret; } -static int -send_response_sock(lm_ctx_t *lm_ctx, struct vfio_user_header *hdr) -{ - return write(lm_ctx->conn_fd, hdr, sizeof *hdr); -} - static void get_path_from_fd(int fd, char *buf) { @@ -621,7 +608,6 @@ static struct transport_ops { int (*attach)(lm_ctx_t*); int(*detach)(lm_ctx_t*); int (*get_request)(lm_ctx_t*, struct vfio_user_header*, int *fds, int *nr_fds); - int (*send_response)(lm_ctx_t*, struct vfio_user_header*); ssize_t (*recv_fds)(lm_ctx_t*, void *buf, size_t size); } transports_ops[] = { [LM_TRANS_KERNEL] = { @@ -630,7 +616,6 @@ static struct transport_ops { .detach = dev_detach, .recv_fds = recv_fds_kernel, .get_request = get_request_kernel, - .send_response = send_response_kernel }, [LM_TRANS_SOCK] = { .init = init_sock, @@ -638,7 +623,6 @@ static struct transport_ops { .detach = close_sock, .recv_fds = recv_fds_sock, .get_request = get_request_sock, - .send_response = send_response_sock } }; |