src/dpdk/lib/librte_vhost/vhost_user.c
static int
validate_msg_fds(struct VhostUserMsg *msg, int expected_fds)
{
	if (msg->fd_num == expected_fds)
		return 0;

	VHOST_LOG_CONFIG(ERR,
		" Expect %d FDs for request %s, received %d\n",
		expected_fds,
		vhost_message_str[msg->request.master],
		msg->fd_num);

	close_msg_fds(msg);

	return -1;
}
/*
 * Ensure the expected number of FDs is received,
 * close all FDs and return an error if this is not the case.
 */
Ensure the expected number of FDs is received,
close all FDs and return an error if this is not the case.
Ensure the expected number of FDs is received close all FDs and return an error if this is not the case .
static int
validate_msg_fds(struct VhostUserMsg *msg, int expected_fds)
{
	if (msg->fd_num == expected_fds)
		return 0;
	VHOST_LOG_CONFIG(ERR,
		" Expect %d FDs for request %s, received %d\n",
		expected_fds,
		vhost_message_str[msg->request.master],
		msg->fd_num);
	close_msg_fds(msg);
	return -1;
}
static int validate_msg_fds ( struct VhostUserMsg * msg , int expected_fds ) { if ( msg -> fd_num == expected_fds ) return 0 ; VHOST_LOG_CONFIG ( ERR , " \n " , expected_fds , vhost_message_str [ msg -> request . master ] , msg -> fd_num ) ; close_msg_fds ( msg ) ; return -1 ; }
Ensure the expected number of FDs is received,
 close all FDs and return an error if this is not the case.
Ensure the expected number of FDs is received close all FDs and return an error if this is not the case .