/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_util.c | 67 num_logs(nvlist_t *nv) argument 73 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
|
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kmdb_promif_isadep.c | 72 kmdb_auxv_nv_t *nv = &kav->kav_pcache[i]; local 73 if (strcmp(nv->kanv_name, propname) == 0) 74 return (nv->kanv_val);
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | glue4.c | 29 int c, oldc = 0, alph = 0, nv = 0; local 40 for (cv[nv++] = "fgrep"; c = *inp; inp++) { 47 cv[nv++] = inp; 53 fprintf(stderr, "%d args set up\n", nv); 64 fgrep(nv, cv);
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_comutil.c | 48 zfs_allocatable_devs(nvlist_t *nv) argument 55 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
|
/illumos-gate/usr/src/uts/sparc/v9/syscall/ |
H A D | install_utrap.c | 40 utrap_handler_t *ov, *nv, *pv, *sv, *tmp; local 75 nv = (utrap_handler_t *)(uintptr_t)nv32; 76 if (nv != UTRAP_UTH_NOCHANGE) { 77 if (((uintptr_t)nv) & 0x3) 102 tmp = atomic_cas_ptr(&p->p_utraps[idx], ov, nv);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_ldap.c | 296 int nv = 0; local 319 rvDN = ldapSearch(&ls, &nv, 0, &stat); 322 if (rvDN == 0 || nv <= 0) 326 dn = findDNs(myself, rvDN, nv, 0, &numDN); 327 freeRuleValue(rvDN, nv);
|
/illumos-gate/usr/src/cmd/fm/schemes/zfs/ |
H A D | scheme.c | 92 find_vdev_iter(nvlist_t *nv, uint64_t search) argument 99 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid); 102 return (nv); 104 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 112 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, 120 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES,
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | rctl_proc.c | 93 rctl_qty_t nv) 96 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_native); 98 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_ilp32); 101 e->rcep_p.proc->p_fsz_ctl = nv; 122 rctl_qty_t nv) 127 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_native); 129 nv 92 proc_filesize_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 121 proc_stack_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 170 proc_nofile_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 194 proc_vmem_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_rx.c | 71 uint32_t nv = atomic_dec_32_nv(&dp->rx_num_bufs); local 72 ASSERT(nv != (uint32_t)-1);
|
/illumos-gate/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 59 nvlist_t *nv) 83 (void) nvlist_add_string(nv, path, timestring); 99 (void) nvlist_add_uint8(nv, path, 103 (void) nvlist_add_uint16(nv, path, 107 (void) nvlist_add_uint32(nv, path, 111 (void) nvlist_add_uint64(nv, path, value); 117 (void) nvlist_add_string(nv, path, (char *)field); 127 (void) nvlist_add_string(nv, path, 135 (void) nvlist_add_byte_array(nv, path, (uchar_t *)field, 143 nvlist_t *nv, boolean_ 58 convert_field(const uint8_t *field, const fru_regdef_t *def, const char *path, nvlist_t *nv) argument 142 convert_element(const uint8_t *data, const fru_regdef_t *def, char *ppath, nvlist_t *nv, boolean_t from_iter) argument 262 nvlist_t *nv = (nvlist_t *)args; local 318 nvlist_t *nv = (nvlist_t *)args; local 354 nvlist_t *nv; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_nv.c | 122 * Can return NULL only if the nv's memory allocation flags include UM_NOSLEEP 125 mdb_nv_create(mdb_nv_t *nv, uint_t um_flags) argument 127 nv->nv_hash = mdb_zalloc(sizeof (mdb_var_t *) * NV_HASHSZ, um_flags); 129 if (nv->nv_hash == NULL) 132 nv->nv_hashsz = NV_HASHSZ; 133 nv->nv_nelems = 0; 134 nv->nv_iter_elt = NULL; 135 nv->nv_iter_bucket = 0; 136 nv->nv_um_flags = um_flags; 138 return (nv); 142 mdb_nv_destroy(mdb_nv_t *nv) argument 161 mdb_nv_lookup(mdb_nv_t *nv, const char *name) argument 179 nv_var_interpos(mdb_nv_t *nv, size_t i, mdb_var_t *v, mdb_var_t *w) argument 215 mdb_nv_insert(mdb_nv_t *nv, const char *name, const mdb_nv_disc_t *disc, uintmax_t value, uint_t flags) argument 296 mdb_nv_remove(mdb_nv_t *nv, mdb_var_t *corpse) argument 349 mdb_nv_rewind(mdb_nv_t *nv) argument 363 mdb_nv_advance(mdb_nv_t *nv) argument 388 mdb_nv_peek(mdb_nv_t *nv) argument 394 mdb_nv_size(mdb_nv_t *nv) argument 406 mdb_nv_sort_iter(mdb_nv_t *nv, int (*func)(mdb_var_t *, void *), void *private, uint_t um_flags) argument [all...] |
H A D | mdb_typedef.c | 414 mdb_nv_t nv; local 419 (void) mdb_nv_create(&nv, UM_SLEEP | UM_GC); 423 if (mdb_nv_lookup(&nv, pn->pn_name) != NULL) { 430 * Our parse tree won't go away before the nv, so it's simpler 433 (void) mdb_nv_insert(&nv, pn->pn_name, NULL, 0, MDB_NV_EXTNAME);
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | expand.c | 278 char *nv, *qnv; local 284 nv = val_to_str(val); 285 if (nv == NULL) { 289 qnv = quote_for_shell(nv); 290 free(nv); 295 nv = qnv; 297 nl = strl + 1 + strlen(nv); 301 free(nv); 307 (void) strcpy(&str[strl + 1], nv); 309 free(nv); [all...] |
/illumos-gate/usr/src/uts/common/fs/swapfs/ |
H A D | swap_subr.c | 366 pgcnt_t nv; local 368 nv = atomic_add_long_nv(&swapfs_pending_delete, (spgcnt_t)delta_swaps); 369 if (!swapfs_recalc(physmem - nv)) { 388 pgcnt_t nv; local 390 nv = atomic_add_long_nv(&swapfs_pending_delete, -(spgcnt_t)delta_swaps); 391 (void) swapfs_recalc(physmem - nv);
|
/illumos-gate/usr/src/cmd/zhack/ |
H A D | zhack.c | 247 nvlist_t *nv = spa->spa_label_features; local 250 for (nvpair_t *pair = nvlist_next_nvpair(nv, NULL); 252 pair = nvlist_next_nvpair(nv, pair)) {
|
/illumos-gate/usr/src/cmd/zstreamdump/ |
H A D | zstreamdump.c | 352 nvlist_t *nv; local 362 err = nvlist_unpack(buf, sz, &nv, 0); 365 nvlist_print(stdout, nv); 366 nvlist_free(nv);
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 69 show_vdev_stats(const char *desc, const char *ctype, nvlist_t *nv, int indent) argument 89 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); 94 if (nvlist_lookup_uint64_array(nv, ZPOOL_CONFIG_VDEV_STATS, 120 if (nvlist_lookup_nvlist_array(nv, ctype, &child, &children) != 0)
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.misc.c | 334 tchar **nv = local 338 return (blkcpy(nv, v));
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 94 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, const char *search_fru, argument 104 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_FRU, &fru) == 0 && 106 return (nv); 108 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) == 0 && 110 return (nv); 113 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 123 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE,
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | version.c | 1005 char *nv; local 1012 if ((nv = getenv(MSG_ORIG(MSG_LD_NOVERSION_64))) == NULL) 1014 if ((nv = getenv(MSG_ORIG(MSG_LD_NOVERSION_32))) == NULL) 1016 nv = getenv(MSG_ORIG(MSG_LD_NOVERSION)); 1018 if (nv && nv[0])
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfvprintf.c | 983 { Sflong_t nv; local 984 sfucvt(lv,sp,nv,ssp,Sflong_t,Sfulong_t);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | vdev_label.c | 217 nvlist_t *nv = NULL; local 219 nv = fnvlist_alloc(); 221 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type); 223 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id); 224 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid); 227 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path); 230 fnvlist_add_string(nv, ZPOOL_CONFIG_DEVID, vd->vdev_devid); 233 fnvlist_add_string(nv, ZPOOL_CONFIG_PHYS_PATH, 237 fnvlist_add_string(nv, ZPOOL_CONFIG_FRU, vd->vdev_fru); 258 fnvlist_add_uint64(nv, ZPOOL_CONFIG_NPARIT [all...] |
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | dit_access.c | 597 int nr = 0, i, j, nv, numDNs; local 826 &nv, &statP, xlate_to_lcase); 841 for (j = 0; j < nv; j++, entry_count ++) {
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 625 char *nv, *name, *val, *buf, *cp, *sep; local 649 nv = buf; 654 while ((nv = strsep(&buf, sep)) != NULL) { 655 if (*nv == '\n') 657 name = nv; 658 if ((val = strchr(nv, '=')) != NULL)
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 189 nvlist_t *nv; local 198 ret = nvlist_alloc(&nv, NV_UNIQUE_NAME_TYPE, 0); 205 *nvl = nv; 209 ret = nvlist_add_uint32(nv, "cfgVersion", cfg->config_version); 215 ret = nvlist_add_nvlist(nv, "targetList", lnv); 225 ret = nvlist_add_nvlist(nv, "tpgList", lnv); 235 ret = nvlist_add_nvlist(nv, "iniList", lnv); 241 ret = nvlist_add_nvlist(nv, "globalProperties", 246 *nvl = nv; 248 nvlist_free(nv); [all...] |