Searched defs:nv (Results 1 - 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_util.c67 num_logs(nvlist_t *nv) argument
73 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
/illumos-gate/usr/src/cmd/refer/
H A Dglue4.c28 int c, alph = 0, nv = 0; local
35 for (cv[nv++] = "fgrep"; c = *inp; inp++) {
42 cv[nv++] = inp;
55 fgrep(nv, cv);
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkmdb_promif_isadep.c71 kmdb_auxv_nv_t *nv = &kav->kav_pcache[i]; local
72 if (strcmp(nv->kanv_name, propname) == 0)
73 return (nv->kanv_val);
/illumos-gate/usr/src/uts/sparc/v9/syscall/
H A Dinstall_utrap.c40 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/common/zfs/
H A Dzfs_comutil.c48 zfs_allocatable_devs(nvlist_t *nv) argument
55 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_ldap.c296 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 Dscheme.c92 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 Drctl_proc.c93 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 Dvmxnet3_rx.c71 uint32_t nv = atomic_dec_32_nv(&dp->rx_num_bufs); local
72 ASSERT(nv != (uint32_t)-1);
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c46 show_vdev_stats(const char *desc, const char *ctype, nvlist_t *nv, int indent) argument
68 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log);
69 (void) nvlist_lookup_string(nv, ZPOOL_CONFIG_ALLOCATION_BIAS,
71 if (nvlist_lookup_uint64_array(nv, ZPOOL_CONFIG_VDEV_STATS,
107 if (nvlist_lookup_nvlist_array(nv, ctype, &child, &children) != 0)
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c278 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 Dswap_subr.c366 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/mdb/common/mdb/
H A Dmdb_nv.c122 * 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 Dmdb_typedef.c414 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/lib/libfru/libnvfru/
H A Dnvfru.c61 nvlist_t *nv)
85 (void) nvlist_add_string(nv, path, timestring);
101 (void) nvlist_add_uint8(nv, path,
105 (void) nvlist_add_uint16(nv, path,
109 (void) nvlist_add_uint32(nv, path,
113 (void) nvlist_add_uint64(nv, path, value);
119 (void) nvlist_add_string(nv, path, (char *)field);
129 (void) nvlist_add_string(nv, path,
137 (void) nvlist_add_byte_array(nv, path, (uchar_t *)field,
145 nvlist_t *nv, boolean_
60 convert_field(const uint8_t *field, const fru_regdef_t *def, const char *path, nvlist_t *nv) argument
144 convert_element(const uint8_t *data, const fru_regdef_t *def, char *ppath, nvlist_t *nv, boolean_t from_iter) argument
264 nvlist_t *nv = (nvlist_t *)args; local
320 nvlist_t *nv = (nvlist_t *)args; local
356 nvlist_t *nv; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_iter.c419 * Populate nv with all valid properties and their values for the given
423 zcp_dataset_props(dsl_dataset_t *ds, nvlist_t *nv) argument
432 fnvlist_add_boolean(nv, zfs_prop_to_name(prop));
463 nvlist_t *nv = fnvlist_alloc(); local
470 zcp_dataset_props(ds, nv);
474 error = zcp_nvlist_to_lua(state, nv, errbuf, sizeof (errbuf));
475 nvlist_free(nv);
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c214 nvlist_t *nv = spa->spa_label_features; local
217 for (nvpair_t *pair = nvlist_next_nvpair(nv, NULL);
219 pair = nvlist_next_nvpair(nv, pair)) {
/illumos-gate/usr/src/cmd/csh/
H A Dsh.misc.c334 tchar **nv = local
338 return (blkcpy(nv, v));
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dversion.c1005 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 Dsfvprintf.c988 { Sflong_t nv; local
989 sfucvt(lv,sp,nv,ssp,Sflong_t,Sfulong_t);
/illumos-gate/usr/src/cmd/zstreamdump/
H A Dzstreamdump.c374 nvlist_t *nv; local
384 err = nvlist_unpack(buf, sz, &nv, 0);
387 nvlist_print(stdout, nv);
388 nvlist_free(nv);
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c97 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, const char *search_fru, argument
107 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_FRU, &fru) == 0 &&
109 return (nv);
111 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &guid) == 0 &&
113 return (nv);
116 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
126 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE,
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_persist.c625 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/cmd/cmd-inet/usr.bin/ftp/
H A Dglob.c733 register char **nv = (char **)malloc((unsigned)((blklen(v) + 1) * local
736 if (nv == (char **)0)
739 return (blkcpy(nv, v));
/illumos-gate/usr/src/common/iscsit/
H A Discsit_common.c189 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...]

Completed in 284 milliseconds

123