Lines Matching refs:sock
2 * sock.c
59 smb_data_ready(struct sock *sk, int len)
62 void (*data_ready)(struct sock *, int) = server->data_ready;
98 struct socket *sock = server_sock(server);
100 VERBOSE("closing socket %p\n", sock);
101 sock->sk->sk_data_ready = server->data_ready;
146 struct socket *sock = server_sock(server);
150 err = sock->ops->ioctl(sock, SIOCINQ, (unsigned long) &avail);
202 struct socket *sock;
207 sock = server_sock(server);
208 if (!sock)
210 if (sock->sk->sk_state != TCP_ESTABLISHED)
214 result = smb_get_length(sock, peek_buf);
236 result = _recvfrom(sock, server->header + server->smb_read,
256 struct socket *sock;
266 sock = server_sock(server);
267 if (!sock)
269 if (sock->sk->sk_state != TCP_ESTABLISHED)
280 result = kernel_recvmsg(sock, &msg, &iov, 1, rlen, flags);
303 struct socket *sock;
312 sock = server_sock(server);
313 if (!sock)
315 if (sock->sk->sk_state != TCP_ESTABLISHED)
328 result = kernel_recvmsg(sock, &msg, p, num, rlen, flags);
352 struct socket *sock;
360 sock = server_sock(server);
361 if (!sock)
363 if (sock->sk->sk_state != TCP_ESTABLISHED)
370 result = kernel_sendmsg(sock, &msg, p, num, slen);