Lines Matching defs:to

7  * as defined in and that are subject to the Apple Public Source License
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
33 * This code is derived from software contributed to Berkeley by
49 * may be used to endorse or promote products derived from this software
68 * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
226 * The pool of up to nfsiod_thread_max threads is launched on demand and exit
240 * decision to terminate is atomic with the termination.
304 /* wait for the thread to complete startup */
313 * Grab an nfsiod struct to work on, do some work, then drop it
341 * In order to ensure some level of fairness between mounts,
344 * iteration - and we have a chance to see if other work needs
345 * to be done (e.g. the delayed write queue needs to be pushed
360 /* now check if there's more/other work to be done */
364 /* we're going to stop working on this mount */
372 /* loop if there's still a mount to work on */
402 * getfh() lives here too, but maybe should move to kern/vfs_syscalls.c
432 /* limit fh size to length specified (or v3 size by default) */
502 * syscall for the rpc.lockd to use to translate a NFS file handle into
553 /* now give me my vnode, it gets returned to me with a reference */
563 * From now on we have to make sure not
564 * to forget about the vnode.
583 /* compute action to be authorized */
613 // XXX do we really need to support this with fhopen()?
627 /* Modify local copy (to not damage thread copy) */
710 * to keep the socket from being closed when nfsd closes its
729 * Adds a socket to the list for servicing by nfsds.
820 /* add the socket to the list */
855 * waiting for work to do (nfsd_queue).
859 * nfsrv_sockwait - sockets w/new data waiting to be worked on
860 * nfsrv_sockwork - sockets being worked on which may have more work to do
868 * defecting to work on another socket.
870 * nfsds looking for a socket to work on check the "wait" queue first and
873 * the queue it's currently on and moves it to the end of the "work" queue.
874 * When nfsds are checking the queues for work, any sockets found not to
890 struct timespec to;
911 to.tv_sec = 5;
912 to.tv_nsec = 0;
923 /* already have some work to do */
927 /* need to find work to do */
941 error = msleep(nfsd, nfsd_mutex, PSOCK | PCATCH, "nfsd", &to);
954 /* look for a socket to work on in the wait queue */
962 /* nothing to do, so skip this socket */
967 /* look for a socket to work on in the work queue */
975 /* nothing to do, so skip this socket */
980 /* we found a socket to work on, grab a reference */
1069 * Loop to get all the write RPC replies that have been
1089 * to send a reply we better close the connection
1118 * Need to checksum or encrypt the reply
1205 * Check to see if there are outstanding writes that
1206 * need to be serviced.
1256 /* copy in pointers to path and export args */
1284 * The trick here is to increment the sref at the start, so that the nfsds
1302 * Attempt to deter future up-calls, but leave the
1303 * up-call info in place to avoid a race with the
1404 * and start the timer to delete it
1430 * seconds then we assume it's safe to free.