Lines Matching defs:nop

222 	struct nfsclopen *op = NULL, *nop = NULL;
242 nop = malloc(sizeof (struct nfsclopen) +
244 nop->nfso_hash.le_prev = NULL;
249 if (nop != NULL)
250 free(nop, M_NFSCLOPEN);
293 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
301 if (nfhp != NULL && dp != NULL && nop == NULL)
337 if (nop != NULL)
338 free(nop, M_NFSCLOPEN);
356 struct nfsclopen *op, *nop;
363 nop = *nopp;
365 nop = NULL;
394 if (op == NULL && nop != NULL) {
395 nop->nfso_own = owp;
396 nop->nfso_mode = 0;
397 nop->nfso_opencnt = 0;
398 nop->nfso_posixlock = 1;
399 nop->nfso_fhlen = fhlen;
400 NFSBCOPY(fhp, nop->nfso_fh, fhlen);
401 LIST_INIT(&nop->nfso_lock);
402 nop->nfso_stateid.seqid = 0;
403 nop->nfso_stateid.other[0] = 0;
404 nop->nfso_stateid.other[1] = 0;
405 nop->nfso_stateid.other[2] = 0;
407 newnfs_copyincred(cred, &nop->nfso_cred);
416 nop, nfso_hash);
419 LIST_INSERT_HEAD(&owp->nfsow_open, nop, nfso_list);
420 *opp = nop;
1767 struct nfsclopen *op, *nop;
1779 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
1794 struct nfsclopen *op, *nop, *top;
1868 LIST_FOREACH_SAFE(op, &owp->nfsow_open, nfso_list, nop) {
2121 struct nfsclopen *op, *nop;
2223 nop = LIST_NEXT(op, nfso_list);
2328 op = nop;
2357 nop = NULL;
2359 nop = malloc(sizeof (struct nfsclopen) +
2361 nop->nfso_own = nowp;
2363 nop->nfso_mode = NFSV4OPEN_ACCESSWRITE;
2366 nop->nfso_mode = NFSV4OPEN_ACCESSREAD;
2369 nop->nfso_opencnt = 0;
2370 nop->nfso_posixlock = 1;
2371 nop->nfso_fhlen = dp->nfsdl_fhlen;
2372 NFSBCOPY(dp->nfsdl_fh, nop->nfso_fh, dp->nfsdl_fhlen);
2373 LIST_INIT(&nop->nfso_lock);
2374 nop->nfso_stateid.seqid = 0;
2375 nop->nfso_stateid.other[0] = 0;
2376 nop->nfso_stateid.other[1] = 0;
2377 nop->nfso_stateid.other[2] = 0;
2379 newnfs_copyincred(tcred, &nop->nfso_cred);
2381 error = nfscl_tryopen(nmp, NULL, nop->nfso_fh,
2382 nop->nfso_fhlen, nop->nfso_fh, nop->nfso_fhlen,
2383 nop->nfso_mode, nop, NULL, 0, &tdp, 1,
2390 if ((nop->nfso_mode & mode) == mode &&
2391 nop->nfso_fhlen == tdp->nfsdl_fhlen &&
2392 !NFSBCMP(nop->nfso_fh, tdp->nfsdl_fh,
2393 nop->nfso_fhlen)) {
2408 if (nop != NULL)
2409 free(nop, M_NFSCLOPEN);
2435 LIST_INSERT_HEAD(&extra_open, nop, nfso_list);
2444 LIST_FOREACH_SAFE(op, &extra_open, nfso_list, nop) {
3383 struct nfsclopen *op, *nop;
3472 LIST_FOREACH_SAFE(op, &delayed, nfso_list, nop) {
4362 struct nfsclopen *op, *nop;
4383 nop = malloc(sizeof (struct nfsclopen) +
4385 nop->nfso_hash.le_prev = NULL;
4387 nfscl_newopen(clp, NULL, &owp, NULL, &op, &nop, owp->nfsow_owner,
4407 if (nop != NULL)
4408 free(nop, M_NFSCLOPEN);