MCPcopy Create free account
hub / github.com/F-Stack/f-stack / close_msg_fds

Function close_msg_fds

dpdk/lib/vhost/vhost_user.c:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static int read_vhost_message(struct virtio_net *dev, int sockfd, struct vhu_msg_context *ctx);
69
70static void
71close_msg_fds(struct vhu_msg_context *ctx)
72{
73 int i;
74
75 for (i = 0; i < ctx->fd_num; i++) {
76 int fd = ctx->fds[i];
77
78 if (fd == -1)
79 continue;
80
81 ctx->fds[i] = -1;
82 close(fd);
83 }
84}
85
86/*
87 * Ensure the expected number of FDs is received,

Callers 5

validate_msg_fdsFunction · 0.85
vhost_user_set_mem_tableFunction · 0.85
vhost_user_set_log_baseFunction · 0.85
read_vhost_messageFunction · 0.85
vhost_user_msg_handlerFunction · 0.85

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected