Lines Matching refs:np
961 struct auth_cache *np; in nfsauth_cache_get() local
965 np = kmem_cache_alloc(exi_cache_handle, KM_NOSLEEP_LAZY); in nfsauth_cache_get()
966 if (np == NULL) { in nfsauth_cache_get()
974 np->auth_clnt = c; in nfsauth_cache_get()
975 np->auth_flavor = flavor; in nfsauth_cache_get()
976 np->auth_clnt_cred = crdup(cr); in nfsauth_cache_get()
977 np->auth_srv_ngids = 0; in nfsauth_cache_get()
978 np->auth_srv_gids = NULL; in nfsauth_cache_get()
979 np->auth_time = np->auth_freshness = gethrestime_sec(); in nfsauth_cache_get()
980 np->auth_state = NFS_AUTH_NEW; in nfsauth_cache_get()
981 mutex_init(&np->auth_lock, NULL, MUTEX_DEFAULT, NULL); in nfsauth_cache_get()
982 cv_init(&np->auth_cv, NULL, CV_DEFAULT, NULL); in nfsauth_cache_get()
989 avl_insert(&c->authc_tree, np, where); in nfsauth_cache_get()
991 p = np; in nfsauth_cache_get()
995 cv_destroy(&np->auth_cv); in nfsauth_cache_get()
996 mutex_destroy(&np->auth_lock); in nfsauth_cache_get()
997 crfree(np->auth_clnt_cred); in nfsauth_cache_get()
998 kmem_cache_free(exi_cache_handle, np); in nfsauth_cache_get()