if_mcx.c | 8502 const struct mcx_kstat_ppcnt *ksp) 8508 ks = kstat_create(DEVNAME(sc), 0, ksp->ksp_name, 0, KSTAT_T_KV, 0); 8512 kvs = mallocarray(ksp->ksp_n, sizeof(*kvs), 8515 for (i = 0; i < ksp->ksp_n; i++) { 8516 const struct mcx_ppcnt *tpl = &ksp->ksp_tpl[i]; 8523 ks->ks_ptr = (void *)ksp; 8525 ks->ks_datalen = ksp->ksp_n * sizeof(*kvs); 8553 struct mcx_kstat_ppcnt *ksp = ks->ks_ptr; local in function:mcx_kstat_ppcnt_read 8555 .ppcnt_grp = ksp->ksp_grp, 8572 for (i = 0; i < ksp->ksp_n; i++ [all...] |