Lines Matching defs:sock
32 #include <net/sock.h>
79 case NBD_SET_SOCK: return "set-sock";
83 case NBD_CLEAR_SOCK: return "clear-sock";
123 if (lo->sock) {
126 kernel_sock_shutdown(lo->sock, SHUT_RDWR);
127 lo->sock = NULL;
148 struct socket *sock = lo->sock;
154 if (unlikely(!sock)) {
166 sock->sk->sk_allocation = GFP_NOIO;
185 result = kernel_sendmsg(sock, &msg, &iov, 1, size);
189 result = kernel_recvmsg(sock, &msg, &iov, 1, size, 0);
424 * Because we have set lo->sock to NULL under the tx_lock, all
431 BUG_ON(lo->sock);
462 if (unlikely(!lo->sock)) {
544 if (unlikely(!lo->sock)) {
577 if (!lo->sock)
586 lo->sock = NULL;
605 lo->sock = SOCKET_I(inode);
686 BUG_ON(!lo->sock && !list_empty(&lo->queue_head));