Lines Matching refs:ksp
114 safe_kstat_data_lookup(kstat_t *ksp, char *name) in safe_kstat_data_lookup() argument
118 if ((dp = kstat_data_lookup(ksp, name)) == NULL) in safe_kstat_data_lookup()
120 ksp->ks_name, name, get_errstr()); in safe_kstat_data_lookup()
178 sdata_new(kstat_t *ksp) in sdata_new() argument
183 kstat_clone(ksp, &sdp->sd_nks, 0); in sdata_new()
208 kstat_t *ksp; in update_sdata_list() local
211 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in update_sdata_list()
212 if (strcmp(ksp->ks_module, module) == 0 && in update_sdata_list()
213 (name == NULL || strcmp(ksp->ks_name, name) == 0) && in update_sdata_list()
214 (instance == -1 || ksp->ks_instance == instance)) { in update_sdata_list()
215 if (kstat_read(kc, ksp, NULL) == -1) { in update_sdata_list()
227 if (ksp->ks_instance == in update_sdata_list()
229 if (ksp->ks_kid == sdp->sd_nks.ks_kid) { in update_sdata_list()
235 kstat_clone(ksp, &sdp->sd_nks, 1); in update_sdata_list()
245 list = sdata_new(ksp); in update_sdata_list()
248 sdpp->sd_next = sdata_new(ksp); in update_sdata_list()