Lines Matching refs:fd
839 static struct socket *get_raw_socket(int fd)
846 struct socket *sock = sockfd_lookup(fd, &r);
872 static struct socket *get_tap_socket(int fd)
874 struct file *file = fget(fd);
888 static struct socket *get_socket(int fd)
893 if (fd == -1)
895 sock = get_raw_socket(fd);
898 sock = get_tap_socket(fd);
904 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd)
930 sock = get_socket(fd);
1092 return vhost_net_set_backend(n, backend.index, backend.fd);