Lines Matching defs:nop

215 	struct nfsclopen *op = NULL, *nop = NULL;
235 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
240 if (nop != NULL)
241 FREE((caddr_t)nop, M_NFSCLOPEN);
280 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
292 if (nop != NULL)
293 FREE((caddr_t)nop, M_NFSCLOPEN);
299 if (nfhp != NULL && dp != NULL && nop == NULL)
328 struct nfsclopen *op, *nop;
335 nop = *nopp;
337 nop = NULL;
366 if (op == NULL && nop != NULL) {
367 nop->nfso_own = owp;
368 nop->nfso_mode = 0;
369 nop->nfso_opencnt = 0;
370 nop->nfso_posixlock = 1;
371 nop->nfso_fhlen = fhlen;
372 NFSBCOPY(fhp, nop->nfso_fh, fhlen);
373 LIST_INIT(&nop->nfso_lock);
374 nop->nfso_stateid.seqid = 0;
375 nop->nfso_stateid.other[0] = 0;
376 nop->nfso_stateid.other[1] = 0;
377 nop->nfso_stateid.other[2] = 0;
387 LIST_INSERT_HEAD(&owp->nfsow_open, nop, nfso_list);
388 *opp = nop;
1567 struct nfsclopen *op, *nop;
1571 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
1586 struct nfsclopen *op, *nop, *top;
1656 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
1880 struct nfsclopen *op, *nop;
1973 nop = LIST_NEXT(op, nfso_list);
2063 op = nop;
2092 nop = NULL;
2094 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
2096 nop->nfso_own = nowp;
2098 nop->nfso_mode = NFSV4OPEN_ACCESSWRITE;
2101 nop->nfso_mode = NFSV4OPEN_ACCESSREAD;
2104 nop->nfso_opencnt = 0;
2105 nop->nfso_posixlock = 1;
2106 nop->nfso_fhlen = dp->nfsdl_fhlen;
2107 NFSBCOPY(dp->nfsdl_fh, nop->nfso_fh, dp->nfsdl_fhlen);
2108 LIST_INIT(&nop->nfso_lock);
2109 nop->nfso_stateid.seqid = 0;
2110 nop->nfso_stateid.other[0] = 0;
2111 nop->nfso_stateid.other[1] = 0;
2112 nop->nfso_stateid.other[2] = 0;
2114 newnfs_copyincred(tcred, &nop->nfso_cred);
2116 error = nfscl_tryopen(nmp, NULL, nop->nfso_fh,
2117 nop->nfso_fhlen, nop->nfso_fh, nop->nfso_fhlen,
2118 nop->nfso_mode, nop, NULL, 0, &tdp, 1,
2125 if ((nop->nfso_mode & mode) == mode &&
2126 nop->nfso_fhlen == tdp->nfsdl_fhlen &&
2127 !NFSBCMP(nop->nfso_fh, tdp->nfsdl_fh,
2128 nop->nfso_fhlen)) {
2143 if (nop != NULL)
2144 FREE((caddr_t)nop, M_NFSCLOPEN);
2152 LIST_INSERT_HEAD(&extra_open, nop, nfso_list);
2161 LIST_FOREACH_SAFE(op, &extra_open, nfso_list, nop) {
3937 struct nfsclopen *op, *nop;
3958 MALLOC(nop, struct nfsclopen *, sizeof (struct nfsclopen) +
3961 nfscl_newopen(clp, NULL, &owp, NULL, &op, &nop, owp->nfsow_owner,
3977 if (nop != NULL)
3978 FREE((caddr_t)nop, M_NFSCLOPEN);