Lines Matching refs:k
93 cachefs_kstat_key_t *k; in stats_create_mountpath() local
113 k = (cachefs_kstat_key_t *)key->ks_data; in stats_create_mountpath()
125 k[i].ks_mountpoint += (uintptr_t)k; in stats_create_mountpath()
126 k[i].ks_backfs += (uintptr_t)k; in stats_create_mountpath()
127 k[i].ks_cachedir += (uintptr_t)k; in stats_create_mountpath()
128 k[i].ks_cacheid += (uintptr_t)k; in stats_create_mountpath()
130 if (! k[i].ks_mounted) in stats_create_mountpath()
133 if ((stat64((char *)(uintptr_t)k[i].ks_mountpoint, &s) == 0) && in stats_create_mountpath()
145 st->st_fsid = k[i].ks_id; in stats_create_mountpath()
165 cachefs_kstat_key_t *k, *prc = NULL, *rc = NULL; in stats_next() local
177 k = (cachefs_kstat_key_t *)key->ks_data; in stats_next()
182 if (st->st_fsid == k[i].ks_id) in stats_next()
186 prc = k + i; in stats_next()
187 st->st_fsid = k[i].ks_id; in stats_next()
191 st->st_fsid = k[0].ks_id; in stats_next()
193 prc = k; in stats_next()
201 prc->ks_mountpoint += (uintptr_t)k; in stats_next()
202 prc->ks_backfs += (uintptr_t)k; in stats_next()
203 prc->ks_cachedir += (uintptr_t)k; in stats_next()
204 prc->ks_cacheid += (uintptr_t)k; in stats_next()
241 cachefs_kstat_key_t *k, *key, *rc = NULL; in stats_getkey() local
256 k = key + st->st_fsid - 1; in stats_getkey()
257 k->ks_mountpoint += (uintptr_t)key; in stats_getkey()
258 k->ks_backfs += (uintptr_t)key; in stats_getkey()
259 k->ks_cachedir += (uintptr_t)key; in stats_getkey()
260 k->ks_cacheid += (uintptr_t)key; in stats_getkey()
262 size += strlen((char *)(uintptr_t)k->ks_mountpoint) + 1; in stats_getkey()
263 size += strlen((char *)(uintptr_t)k->ks_backfs) + 1; in stats_getkey()
264 size += strlen((char *)(uintptr_t)k->ks_cachedir) + 1; in stats_getkey()
265 size += strlen((char *)(uintptr_t)k->ks_cacheid) + 1; in stats_getkey()
271 memcpy(rc, k, sizeof (*rc)); in stats_getkey()
274 (void) strcpy(s, (char *)(uintptr_t)k->ks_mountpoint); in stats_getkey()
277 (void) strcpy(s, (char *)(uintptr_t)k->ks_backfs); in stats_getkey()
280 (void) strcpy(s, (char *)(uintptr_t)k->ks_cachedir); in stats_getkey()
283 (void) strcpy(s, (char *)(uintptr_t)k->ks_cacheid); in stats_getkey()