Lines Matching refs:cid

140 /* Create socket <type>, bind to <cid, port>.
143 int vsock_bind_try(unsigned int cid, unsigned int port, int type)
147 .svm_cid = cid,
168 /* Create socket <type>, bind to <cid, port> and return the file descriptor. */
169 int vsock_bind(unsigned int cid, unsigned int port, int type)
173 fd = vsock_bind_try(cid, port, type);
182 int vsock_connect_fd(int fd, unsigned int cid, unsigned int port)
186 .svm_cid = cid,
201 /* Bind to <bind_port>, connect to <cid, port> and return the file descriptor. */
202 int vsock_bind_connect(unsigned int cid, unsigned int port, unsigned int bind_port, int type)
208 if (vsock_connect_fd(client_fd, cid, port)) {
216 /* Connect to <cid, port> and return the file descriptor. */
217 int vsock_connect(unsigned int cid, unsigned int port, int type)
229 if (vsock_connect_fd(fd, cid, port)) {
240 int vsock_stream_connect(unsigned int cid, unsigned int port)
242 return vsock_connect(cid, port, SOCK_STREAM);
245 int vsock_seqpacket_connect(unsigned int cid, unsigned int port)
247 return vsock_connect(cid, port, SOCK_SEQPACKET);
250 /* Listen on <cid, port> and return the file descriptor. */
251 static int vsock_listen(unsigned int cid, unsigned int port, int type)
255 fd = vsock_bind(cid, port, type);
265 /* Listen on <cid, port> and return the first incoming connection. The remote
268 int vsock_accept(unsigned int cid, unsigned int port,
278 fd = vsock_listen(cid, port, type);
312 int vsock_stream_accept(unsigned int cid, unsigned int port,
315 return vsock_accept(cid, port, clientaddrp, SOCK_STREAM);
318 int vsock_stream_listen(unsigned int cid, unsigned int port)
320 return vsock_listen(cid, port, SOCK_STREAM);
323 int vsock_seqpacket_accept(unsigned int cid, unsigned int port,
326 return vsock_accept(cid, port, clientaddrp, SOCK_SEQPACKET);