Lines Matching defs:fds
40 vhost_user_write(int fd, void *buf, int len, int *fds, int fd_num)
58 if (fds && fd_num > 0) {
69 memcpy(CMSG_DATA(cmsg), fds, fd_size);
231 prepare_vhost_memory_user(struct vhost_user_msg *msg, int fds[])
248 fds[i] = open(hugepages[i].path, O_RDWR);
285 int fds[VHOST_USER_MEMORY_MAX_NREGIONS];
315 rc = prepare_vhost_memory_user(&msg, fds);
326 fds[fd_num++] = *((int *)arg);
354 fds[fd_num++] = file->fd;
377 rc = vhost_user_write(vhostfd, &msg, len, fds, fd_num);
386 close(fds[i]);