/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetPhyStatistics.c | 47 kstat_named_t *kname; in Sun_sasGetPhyStatistics() local 219 kname = (kstat_named_t *)ksp->ks_data; in Sun_sasGetPhyStatistics() 220 for (i = 0; i < ksp->ks_ndata; i++, kname++) { in Sun_sasGetPhyStatistics() 221 if (strcmp(kname->name, in Sun_sasGetPhyStatistics() 223 psas->SecondsSinceLastReset = kname->value.ull; in Sun_sasGetPhyStatistics() 226 if (strcmp(kname->name, "TxFrames") == 0) { in Sun_sasGetPhyStatistics() 227 psas->TxFrames = kname->value.ull; in Sun_sasGetPhyStatistics() 230 if (strcmp(kname->name, "RxFrames") == 0) { in Sun_sasGetPhyStatistics() 231 psas->RxFrames = kname->value.ull; in Sun_sasGetPhyStatistics() 234 if (strcmp(kname->name, "TxWords") == 0) { in Sun_sasGetPhyStatistics() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 226 char *kname; in rctlsys_get() local 242 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_get() 245 if (copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_get() 246 kmem_free(kname, MAXPATHLEN); in rctlsys_get() 251 if ((hndl = rctl_hndl_lookup(kname)) == -1) { in rctlsys_get() 252 kmem_free(kname, MAXPATHLEN); in rctlsys_get() 257 if (rctl_global_get(kname, krde) == -1) { in rctlsys_get() 258 kmem_free(kname, MAXPATHLEN); in rctlsys_get() 263 kmem_free(kname, MAXPATHLEN); in rctlsys_get() 392 char *kname; in rctlsys_set() local [all …]
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | isoboot.c | 91 static char kname[1024]; variable 264 *kname = '\0'; in main() 280 if (*kname == '\0') { in main() 281 memcpy(kname, PATH_LOADER, in main() 293 if (*kname != '\0') in main() 295 memcpy(kname, PATH_LOADER, sizeof (PATH_LOADER)); in main() 308 dsk.unit, kname); in main() 312 dsk.unit, dsk.part, kname); in main() 354 if (!(ino = cd9660_lookup(kname))) { in load() 357 kname, dsk.drive & DRV_MASK, dev_nm[dsk.type], in load() [all …]
|
/illumos-gate/usr/src/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 113 static char kname[1024]; variable 321 if (auto_boot && !*kname) { in main() 329 memcpy(kname, loadpath[i].p, loadpath[i].len); in main() 336 memcpy(kname, loadpath[0].p, loadpath[0].len); in main() 343 printf("Default: %s%s\nboot: ", boot_devname, kname); in main() 379 if ((fd = open(kname, O_RDONLY)) == -1) { in load() 380 printf("\nCan't find %s\n", kname); in load() 479 bootinfo.bi_kernelname = VTOP(kname); in load() 668 if ((size_t)i >= sizeof (kname)) in parse_cmd() 670 memcpy(kname, arg, i + 1); in parse_cmd()
|
/illumos-gate/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_impl.c | 1229 char kname[40]; in ibtl_kstat_stats_create() local 1236 (void) snprintf(kname, sizeof (kname), "%s%d/port%d/stats", in ibtl_kstat_stats_create() 1239 ksp = kstat_create("ibtf", 0, kname, "ib", KSTAT_TYPE_NAMED, 1, 0); in ibtl_kstat_stats_create() 1318 char kname[40]; in ibtl_kstat_pkeys_create() local 1326 (void) snprintf(kname, sizeof (kname), "%s%d/port%d/pkeys", in ibtl_kstat_pkeys_create() 1329 ksp = kstat_create("ibtf", 0, kname, "ib", KSTAT_TYPE_RAW, 0, in ibtl_kstat_pkeys_create()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_stats.c | 501 char kname[32]; in tavor_kstat_perfcntr64_create() local 507 (void) snprintf(kname, sizeof (kname), "port%u/perf_counters", in tavor_kstat_perfcntr64_create() 509 cntr_ksp = kstat_create(drv_name, drv_instance, kname, "ib", in tavor_kstat_perfcntr64_create()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_stats.c | 601 char kname[32]; in hermon_kstat_perfcntr64_create() local 615 (void) snprintf(kname, sizeof (kname), "port%u/perf_counters", in hermon_kstat_perfcntr64_create() 617 cntr_ksp = kstat_create(drv_name, drv_instance, kname, "ib", in hermon_kstat_perfcntr64_create()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_supplicant.c | 703 (void) dladm_get_secobj(wpa_s->handle, (const char *)wpa_s->kname, &cl, in wpa_config_read_network() 824 if ((strlen(key) >= sizeof (wpa_s.kname))) { in main() 874 (void) strlcpy(wpa_s.kname, key, sizeof (wpa_s.kname)); in main()
|
H A D | wpa_impl.h | 171 char kname[DLADM_SECOBJ_NAME_MAX]; member
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | ldebug.c | 324 static void kname (Proto *p, int pc, int c, const char **name) { in kname() function 430 kname(p, pc, k, name); in getobjname() 449 kname(p, pc, k, name); in getobjname()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | zone.c | 3518 char *kname = kmem_zalloc(ZONENAME_MAX, KM_SLEEP); in zone_set_name() local 3522 if ((err = copyinstr(uname, kname, ZONENAME_MAX, &len)) != 0) { in zone_set_name() 3523 kmem_free(kname, ZONENAME_MAX); in zone_set_name() 3528 if (len == ZONENAME_MAX && kname[ZONENAME_MAX - 1] != '\0') { in zone_set_name() 3529 kmem_free(kname, ZONENAME_MAX); in zone_set_name() 3537 if (!isalnum(kname[0])) { in zone_set_name() 3538 kmem_free(kname, ZONENAME_MAX); in zone_set_name() 3542 if (!isalnum(kname[i]) && kname[i] != '-' && kname[i] != '_' && in zone_set_name() 3543 kname[i] != '.') { in zone_set_name() 3544 kmem_free(kname, ZONENAME_MAX); in zone_set_name() [all …]
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 1754 char kname[SOF_MAXNAMELEN]; in sockconfig_remove_filter() local 1759 if ((error = copyinstr(uname, kname, SOF_MAXNAMELEN, &len)) != 0) in sockconfig_remove_filter() 1762 ent = sof_entry_remove_by_name(kname); in sockconfig_remove_filter()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_ldc.c | 570 char kname[MAXNAMELEN]; in vsw_ldc_attach() local 669 (void) sprintf(kname, "%sldc0x%lx", DRV_NAME, ldcp->ldc_id); in vsw_ldc_attach() 671 kname, &ldcp->ldc_stats); in vsw_ldc_attach()
|
H A D | vnet_gen.c | 2465 char kname[MAXNAMELEN]; in vgen_ldc_attach() local 2525 (void) sprintf(kname, "vnetldc0x%lx", ldcp->ldc_id); in vgen_ldc_attach() 2526 ldcp->ksp = vgen_setup_kstats("vnet", instance, kname, &ldcp->stats); in vgen_ldc_attach()
|