Home
last modified time | relevance | path

Searched refs:cache_object_p (Results 1 – 6 of 6) sorted by relevance

/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_cache.c65 cfsd_cache_object_t *cache_object_p; in cfsd_cache_create() local
70 cache_object_p = cfsd_calloc(sizeof (cfsd_cache_object_t)); in cfsd_cache_create()
71 strlcpy(cache_object_p->i_cachedir, gettext("unknown"), in cfsd_cache_create()
72 sizeof (cache_object_p->i_cachedir)); in cfsd_cache_create()
73 cache_object_p->i_refcnt = 0; in cfsd_cache_create()
74 cache_object_p->i_nextfscacheid = 0; in cfsd_cache_create()
75 cache_object_p->i_cacheid = 0; in cfsd_cache_create()
76 cache_object_p->i_modify = 1; in cfsd_cache_create()
77 cache_object_p->i_fscachelist = NULL; in cfsd_cache_create()
78 cache_object_p->i_fscachecount = 0; in cfsd_cache_create()
[all …]
H A Dcfsd_all.c120 cfsd_cache_object_t *cache_object_p; in cfsd_all_destroy() local
129 cache_object_p = all_object_p->i_cachelist; in cfsd_all_destroy()
131 while (cache_object_p != NULL) { in cfsd_all_destroy()
132 tmp_cache_object_p = cache_object_p->i_next; in cfsd_all_destroy()
133 cfsd_cache_destroy(cache_object_p); in cfsd_all_destroy()
134 cache_object_p = tmp_cache_object_p; in cfsd_all_destroy()
194 cfsd_cache_object_t *cache_object_p; in all_cachelist_at() local
200 cache_object_p = all_object_p->i_cachelist; in all_cachelist_at()
202 while ((cache_object_p != NULL) && (i++ < index)) { in all_cachelist_at()
203 cache_object_p = cache_object_p->i_next; in all_cachelist_at()
[all …]
H A Dcfsd_subr.c100 cfsd_cache_object_t *cache_object_p; in subr_add_mount() local
113 cache_object_p = all_cachelist_find(all_object_p, dirp); in subr_add_mount()
114 if (cache_object_p == NULL) { in subr_add_mount()
116 cache_object_p = cfsd_cache_create(); in subr_add_mount()
118 xx = cache_setup(cache_object_p, dirp, xx); in subr_add_mount()
121 cfsd_cache_destroy(cache_object_p); in subr_add_mount()
126 all_cachelist_add(all_object_p, cache_object_p); in subr_add_mount()
129 cache_lock(cache_object_p); in subr_add_mount()
130 cache_object_p->i_refcnt++; in subr_add_mount()
131 cache_unlock(cache_object_p); in subr_add_mount()
[all …]
H A Dcfsd_svc.c116 cfsd_cache_object_t *cache_object_p; in cachefsd_caches_1_svc() local
141 cache_object_p = all_cachelist_at(all_object_p, index); in cachefsd_caches_1_svc()
142 dbug_assert(cache_object_p); in cachefsd_caches_1_svc()
145 idp->cci_cacheid = cache_object_p->i_cacheid; in cachefsd_caches_1_svc()
146 idp->cci_name = subr_strdup(cache_object_p->i_cachedir); in cachefsd_caches_1_svc()
181 cfsd_cache_object_t *cache_object_p; in cachefsd_cache_status_1_svc() local
203 cache_object_p = all_cachelist_at(all_object_p, index); in cachefsd_cache_status_1_svc()
204 dbug_assert(cache_object_p); in cachefsd_cache_status_1_svc()
207 if (cache_object_p->i_cacheid == *inp) { in cachefsd_cache_status_1_svc()
208 cache_lock(cache_object_p); in cachefsd_cache_status_1_svc()
[all …]
H A Dcfsd_cache.h48 void cfsd_cache_destroy(cfsd_cache_object_t *cache_object_p);
50 int cache_setup(cfsd_cache_object_t *cache_object_p, const char *cachedirp,
52 void cache_lock(cfsd_cache_object_t *cache_object_p);
53 void cache_unlock(cfsd_cache_object_t *cache_object_p);
55 cfsd_fscache_object_t *cache_fscachelist_at(cfsd_cache_object_t *cache_object_p,
57 void cache_fscachelist_add(cfsd_cache_object_t *cache_object_p,
60 cfsd_cache_object_t *cache_object_p, const char *namep);
H A Dcfsd_all.h60 cfsd_cache_object_t *cache_object_p);