Searched refs:fscache_object_p (Results 1 – 7 of 7) sorted by relevance
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_fscache.c | 81 cfsd_fscache_object_t *fscache_object_p; in cfsd_fscache_create() local 89 fscache_object_p = cfsd_calloc(sizeof (cfsd_fscache_object_t)); in cfsd_fscache_create() 90 strlcpy(fscache_object_p->i_name, name, in cfsd_fscache_create() 91 sizeof (fscache_object_p->i_name)); in cfsd_fscache_create() 92 strlcpy(fscache_object_p->i_cachepath, cachepath, in cfsd_fscache_create() 93 sizeof (fscache_object_p->i_cachepath)); in cfsd_fscache_create() 94 fscache_object_p->i_fscacheid = fscacheid; in cfsd_fscache_create() 95 fscache_object_p->i_refcnt = 0; in cfsd_fscache_create() 96 fscache_object_p->i_disconnectable = 0; in cfsd_fscache_create() 97 fscache_object_p->i_mounted = 0; in cfsd_fscache_create() [all …]
|
H A D | cfsd_svc.c | 179 cfsd_fscache_object_t *fscache_object_p = NULL; in cachefsd_cache_status_1_svc() local 226 fscache_object_p = cache_fscachelist_at(cache_object_p, index); in cachefsd_cache_status_1_svc() 227 dbug_assert(fscache_object_p); in cachefsd_cache_status_1_svc() 230 if (fscache_object_p->i_mounted) { in cachefsd_cache_status_1_svc() 231 fscache_lock(fscache_object_p); in cachefsd_cache_status_1_svc() 232 fscache_object_p->i_refcnt++; in cachefsd_cache_status_1_svc() 233 fscache_unlock(fscache_object_p); in cachefsd_cache_status_1_svc() 236 fscache_object_p = NULL; in cachefsd_cache_status_1_svc() 247 if (fscache_object_p) { in cachefsd_cache_status_1_svc() 248 xx = kmod_setup(kmod_object_p, fscache_object_p->i_mntpt); in cachefsd_cache_status_1_svc() [all …]
|
H A D | cfsd_cache.c | 103 cfsd_fscache_object_t *fscache_object_p; in cfsd_cache_destroy() local 110 fscache_object_p = cache_object_p->i_fscachelist; in cfsd_cache_destroy() 112 while (fscache_object_p != NULL) { in cfsd_cache_destroy() 113 tmp_fscache_object_p = fscache_object_p->i_next; in cfsd_cache_destroy() 114 cfsd_fscache_destroy(fscache_object_p); in cfsd_cache_destroy() 115 fscache_object_p = tmp_fscache_object_p; in cfsd_cache_destroy() 221 cfsd_fscache_object_t *fscache_object_p; in cache_fscachelist_at() local 227 fscache_object_p = cache_object_p->i_fscachelist; in cache_fscachelist_at() 229 while ((fscache_object_p != NULL) && (i++ < index)) { in cache_fscachelist_at() 230 fscache_object_p = fscache_object_p->i_next; in cache_fscachelist_at() [all …]
|
H A D | cfsd_fscache.h | 77 void cfsd_fscache_destroy(cfsd_fscache_object_t *fscache_object_p); 79 void fscache_lock(cfsd_fscache_object_t *fscache_object_p); 80 void fscache_unlock(cfsd_fscache_object_t *fscache_object_p); 82 void fscache_setup(cfsd_fscache_object_t *fscache_object_p); 83 void fscache_process(cfsd_fscache_object_t *fscache_object_p); 84 int fscache_simdisconnect(cfsd_fscache_object_t *fscache_object_p, 86 int fscache_unmount(cfsd_fscache_object_t *fscache_object_p, int); 87 void fscache_server_alive(cfsd_fscache_object_t *fscache_object_p, 89 int fscache_pingserver(cfsd_fscache_object_t *fscache_object_p); 90 int fscache_roll(cfsd_fscache_object_t *fscache_object_p, [all …]
|
H A D | cfsd_subr.c | 101 cfsd_fscache_object_t *fscache_object_p; in subr_add_mount() local 136 fscache_object_p = cache_fscachelist_find(cache_object_p, idp); in subr_add_mount() 137 if (fscache_object_p == NULL) { in subr_add_mount() 140 fscache_object_p = cfsd_fscache_create(idp, dirp, xx); in subr_add_mount() 141 cache_fscachelist_add(cache_object_p, fscache_object_p); in subr_add_mount() 144 fscache_lock(fscache_object_p); in subr_add_mount() 145 if (fscache_object_p->i_mounted) { in subr_add_mount() 147 fscache_unlock(fscache_object_p); in subr_add_mount() 153 fscache_unlock(fscache_object_p); in subr_add_mount() 156 fscache_lock(fscache_object_p); in subr_add_mount() [all …]
|
H A D | cfsd_main.c | 116 cfsd_fscache_object_t *fscache_object_p; in main() local 237 fscache_object_p = in main() 241 fscache_lock(fscache_object_p); in main() 242 fscache_object_p->i_refcnt++; in main() 243 fscache_setup(fscache_object_p); in main() 244 fscache_object_p->i_mounted = 1; in main() 245 fscache_unlock(fscache_object_p); in main() 247 if (fscache_object_p->i_disconnectable && in main() 248 fscache_object_p->i_mounted) { in main() 252 cfsd_fscache_destroy(fscache_object_p); in main() [all …]
|
H A D | cfsd_cache.h | 58 cfsd_fscache_object_t *fscache_object_p);
|