Lines Matching defs:user_kstat
64 kstat_t user_kstat, *ksp;
78 user_kstat.ks_kid = user_kstat32.ks_kid;
79 user_kstat.ks_data = (void *)(uintptr_t)user_kstat32.ks_data;
80 user_kstat.ks_data_size = (size_t)user_kstat32.ks_data_size;
85 if (copyin(user_ksp, &user_kstat, sizeof (kstat_t)) != 0)
89 ksp = kstat_hold_bykid(user_kstat.ks_kid, getzoneid());
135 ubufsize = user_kstat.ks_data_size;
155 user_kstat.ks_ndata = ksp->ks_ndata;
156 user_kstat.ks_data_size = kbufsize;
157 user_kstat.ks_flags = ksp->ks_flags;
158 user_kstat.ks_snaptime = ksp->ks_snaptime;
185 for (i = 0; i < user_kstat.ks_ndata; kn++, i++)
236 (char *)user_kstat.ks_data +
245 ((char *)user_kstat.ks_data +
249 user_kstat.ks_data +
250 user_kstat.ks_ndata));
263 if (user_kstat.ks_kid != 0)
273 for (i = 0; i < user_kstat.ks_ndata; k32++, k++, i++) {
298 copysize = user_kstat.ks_ndata * sizeof (kstat32_t);
308 for (i = 0; i < user_kstat.ks_ndata; kn++, i++)
346 (char *)user_kstat.ks_data +
351 ((char *)user_kstat.ks_data +
355 user_kstat.ks_data +
356 user_kstat.ks_ndata));
366 copyout(kbuf, user_kstat.ks_data, copysize))
382 user_kstat32.ks_ndata = user_kstat.ks_ndata;
384 user_kstat32.ks_flags = user_kstat.ks_flags;
385 user_kstat32.ks_snaptime = user_kstat.ks_snaptime;
393 if (copyout(&user_kstat, user_ksp, sizeof (kstat_t)) &&
405 kstat_t user_kstat, *ksp;
423 user_kstat.ks_kid = user_kstat32.ks_kid;
424 user_kstat.ks_data = (void *)(uintptr_t)user_kstat32.ks_data;
425 user_kstat.ks_data_size = (size_t)user_kstat32.ks_data_size;
426 user_kstat.ks_ndata = user_kstat32.ks_ndata;
431 if (copyin(user_ksp, &user_kstat, sizeof (kstat_t)))
435 bufsize = user_kstat.ks_data_size;
440 if (copyin(user_kstat.ks_data, buf, bufsize)) {
445 ksp = kstat_hold_bykid(user_kstat.ks_kid, getzoneid());
469 if (error || user_kstat.ks_data_size != ksp->ks_data_size ||
470 user_kstat.ks_ndata != ksp->ks_ndata) {
602 ((kstat_named_t *)user_kstat.ks_data +
612 ((char *)user_kstat.ks_data +
627 (char *)user_kstat.ks_data);