Lines Matching defs:so

239  * Must be called with nfsiod_mutex held so that the
276 /* shouldn't return... so we have an error */
342 * we grab all the work up front before processing it so any
365 if (morework) /* mount still needs more work so queue it up */
384 /* shouldn't return... so we have an error */
660 socket_t so;
694 error = file_socket(user_nfsdarg.sock, &so);
713 error = nfssvc_addsock(so, nam);
732 nfssvc_addsock(socket_t so, mbuf_t mynam)
743 sock_gettype(so, &sodomain, &sotype, &soprotocol);
757 sock_setsockopt(so, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on));
759 sock_setsockopt(so, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
762 error |= sock_setsockopt(so, SOL_SOCKET, SO_SNDBUF, &reserve, sizeof(reserve));
763 error |= sock_setsockopt(so, SOL_SOCKET, SO_RCVBUF, &reserve, sizeof(reserve));
769 sock_nointerrupt(so, 0);
778 error |= sock_setsockopt(so, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo));
780 error |= sock_setsockopt(so, SOL_SOCKET, SO_SNDTIMEO, &timeo, sizeof(timeo));
824 sock_retain(so); /* grab a retain count on the socket */
825 slp->ns_so = so;
910 /* Set time out so that nfsd threads can wake up a see if they are still needed. */
962 /* nothing to do, so skip this socket */
975 /* nothing to do, so skip this socket */
1090 * so the client doesn't hang.
1284 * The trick here is to increment the sref at the start, so that the nfsds
1285 * will stop using it and clear ns_flag at the end so that it will not be
1291 socket_t so;
1297 so = slp->ns_so;
1298 if (so == NULL)
1306 socket_lock(so, 1);
1307 so->so_rcv.sb_flags &= ~SB_UPCALL;
1308 socket_unlock(so, 1);
1310 sock_shutdown(so, SHUT_RDWR);
1392 /* This socket is no longer valid, so we'll get rid of it */