Lines Matching defs:thd

315 	thread_t thd,
345 nfs_get_stateid(np, thd, cred, &stateid);
355 error = nfs_request_async(np, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, 0, cb, reqp);
420 thread_t thd,
457 nfs_get_stateid(np, thd, cred, &stateid);
471 error = nfs_request_async(np, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, 0, cb, reqp);
552 thread_t thd,
590 error = nfs_request2(dnp, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, 0, &nmrep, &xid, &status);
1645 nfs_mount_state_in_use_start(struct nfsmount *nmp, thread_t thd)
1648 int error = 0, slpflag = (NMFLAG(nmp, INTR) && thd) ? PCATCH : 0;
1658 if ((error = nfs_sigintr(nmp, NULL, thd, 1)))
1755 nfs_open_state_set_busy(nfsnode_t np, thread_t thd)
1764 slpflag = (NMFLAG(nmp, INTR) && thd) ? PCATCH : 0;
1768 if ((error = nfs_sigintr(nmp, NULL, thd, 0)))
1898 nfs_open_owner_set_busy(struct nfs_open_owner *noop, thread_t thd)
1907 slpflag = (NMFLAG(nmp, INTR) && thd) ? PCATCH : 0;
1911 if ((error = nfs_sigintr(nmp, NULL, thd, 0)))
2079 nfs_open_file_set_busy(struct nfs_open_file *nofp, thread_t thd)
2088 slpflag = (NMFLAG(nmp, INTR) && thd) ? PCATCH : 0;
2092 if ((error = nfs_sigintr(nmp, NULL, thd, 0)))
2416 nfs_get_stateid(nfsnode_t np, thread_t thd, kauth_cred_t cred, nfs_stateid *sid)
2419 proc_t p = thd ? get_bsdthreadtask_info(thd) : current_proc(); // XXX async I/O requests don't have a thread
2439 nfs4_reopen(nofp, thd);
3051 nfs_lock_owner_set_busy(struct nfs_lock_owner *nlop, thread_t thd)
3060 slpflag = (NMFLAG(nmp, INTR) && thd) ? PCATCH : 0;
3064 if ((error = nfs_sigintr(nmp, NULL, thd, 0)))
3206 thread_t thd,
3232 error = nfs_open_file_set_busy(nofp, thd);
3235 error = nfs_open_owner_set_busy(nofp->nof_owner, thd);
3245 error = nfs_lock_owner_set_busy(nlop, thd);
3288 error = nfs_request2(np, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, flags|R_NOINTR, &nmrep, &xid, &status);
3331 thread_t thd,
3375 error = nfs_request2(np, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, flags|R_NOINTR, &nmrep, &xid, &status);
4396 nfs4_reopen(struct nfs_open_file *nofp, thread_t thd)
4414 if ((error = nfs_sigintr(nmp, NULL, thd, 0)))
4477 if ((error = nfs_mount_state_in_use_start(nmp, thd)))
4481 error = nfs4_open_reopen_rpc(nofp, thd, noop->noo_cred, &cn, dvp, &vp, NFS_OPEN_SHARE_ACCESS_BOTH, NFS_OPEN_SHARE_DENY_NONE);
4483 error = nfs4_open_reopen_rpc(nofp, thd, noop->noo_cred, &cn, dvp, &vp, NFS_OPEN_SHARE_ACCESS_WRITE, NFS_OPEN_SHARE_DENY_NONE);
4485 error = nfs4_open_reopen_rpc(nofp, thd, noop->noo_cred, &cn, dvp, &vp, NFS_OPEN_SHARE_ACCESS_READ, NFS_OPEN_SHARE_DENY_NONE);
4541 thread_t thd,
4549 return (nfs4_open_rpc_internal(nofp, NULL, thd, cred, cnp, NULL, dvp, vpp, NFS_OPEN_NOCREATE, share_access, share_deny));
4563 thread_t thd,
4593 error = nfs_request2(dnp, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, R_NOINTR, &nmrep, xidp, &status);
4621 thread_t thd,
4681 if ((error = nfs_open_owner_set_busy(noop, thd)))
4740 error = busyerror = nfs_node_set_busy(dnp, thd);
4746 error = nfs_request_async(dnp, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, R_NOINTR, NULL, &req);
4851 error = nfs4_open_confirm_rpc(nmp, dnp, fh.fh_data, fh.fh_len, noop, sid, thd, cred, &nvattr, &xid);
4922 nfs4_delegation_return(np, 0, thd, cred);
4925 nfs4_delegreturn_rpc(nmp, fh.fh_data, fh.fh_len, &dstateid, 0, thd, cred);
5490 thread_t thd,
5530 error = nfs_request2(np, NULL, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, flags|R_NOINTR, &nmrep, &xid, &status);
5895 nfs4_delegation_return(nfsnode_t np, int flags, thread_t thd, kauth_cred_t cred)
5925 error = nfs4_delegreturn_rpc(NFSTONMP(np), fh.fh_data, fh.fh_len, &dstateid, flags, thd, cred);
5972 nfs4_delegreturn_rpc(struct nfsmount *nmp, u_char *fhp, int fhlen, struct nfs_stateid *sid, int flags, thread_t thd, kauth_cred_t cred)
5996 error = nfs_request2(NULL, nmp->nm_mountp, &nmreq, NFSPROC4_COMPOUND, thd, cred, &si, flags, &nmrep, &xid, &status);
6929 thread_t thd;
6950 thd = vfs_context_thread(ctx);
7119 if ((error = nfs_open_owner_set_busy(noop, thd)))
7359 error = nfs4_open_confirm_rpc(nmp, adnp ? adnp : np, fh.fh_data, fh.fh_len, noop, &newnofp->nof_stateid, thd, cred, &nvattr, &xid);
7470 nfs4_delegation_return(anp, 0, thd, cred);
7473 nfs4_delegreturn_rpc(nmp, fh.fh_data, fh.fh_len, &dstateid, 0, thd, cred);
7561 error = nfs_buf_get(anp, 0, nmp->nm_biosize, thd, NBLK_READ|NBLK_NOWAIT, &bp);