Searched refs:nv (Results 1 - 25 of 92) sorted by relevance

1234

/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...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dexecvpe.c58 register char** nv;
63 nv = newargv;
64 *nv++ = "sh";
65 *nv++ = (char*)path;
67 while (*nv++ = *++ov);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_init.c444 nvram_t *nv = (nvram_t *)ha->request_ring_bp; local
473 if (rval != QL_SUCCESS || chksum || nv->id[0] != 'I' ||
474 nv->id[1] != 'S' || nv->id[2] != 'P' || nv->id[3] != ' ' ||
475 nv->nvram_version < 1) {
479 "nvram_version=%x\n", rval, chksum, nv->id[0], nv->id[1],
480 nv->id[2], nv
913 nvram_24xx_t *nv = (nvram_24xx_t *)&nvram; local
1359 ql_23_properties(ql_adapter_state_t *ha, nvram_t *nv) argument
1785 ql_24xx_properties(ql_adapter_state_t *ha, nvram_24xx_t *nv) argument
[all...]
H A Dql_ioctl.c493 nvram_t *nv; local
506 nv = kmem_zalloc(sizeof (*nv), KM_SLEEP);
507 if (nv == NULL) {
515 kmem_free(nv, sizeof (*nv));
523 wptr = (uint16_t *)nv;
536 kmem_free(nv, sizeof (*nv));
541 nv
609 nvram_24xx_t *nv; local
685 nvram_t *nv; local
934 void *nv; local
[all...]
/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/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/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/lib/libast/common/obsolete/
H A Dspawn.c98 register char** nv;
103 nv = newargv;
104 *nv++ = "sh";
105 *nv++ = (char*)path;
107 while (*nv++ = *++ov);
/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,
H A Dzpool_vdev.c596 nvlist_t *nv; local
612 nv = top[t];
618 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log);
622 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE,
624 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
648 verify(nvlist_lookup_uint64(nv,
979 make_disks(zpool_handle_t *zhp, nvlist_t *nv, zpool_boot_label_t boot_type, argument
993 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0);
995 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
1006 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PAT
1158 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument
1296 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local
[all...]
H A Dzpool_util.h40 uint_t num_logs(nvlist_t *nv);
/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/lib/libnisdb/yptol/
H A Ddit_access_utils.h53 __nis_value_t *inVal, int *nv, int *statP);
55 __nis_table_mapping_t *t, int *nv,
72 __nis_rule_value_t *rv, int *nv, int *statP,
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_label.c252 nvlist_t *nv = NULL; local
255 nv = fnvlist_alloc();
257 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type);
259 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ID, vd->vdev_id);
260 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid);
263 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path);
266 fnvlist_add_string(nv, ZPOOL_CONFIG_DEVID, vd->vdev_devid);
269 fnvlist_add_string(nv, ZPOOL_CONFIG_PHYS_PATH,
273 fnvlist_add_string(nv, ZPOOL_CONFIG_FRU, vd->vdev_fru);
294 fnvlist_add_uint64(nv, ZPOOL_CONFIG_NPARIT
[all...]
/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/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/test/zfs-tests/tests/functional/snapshot/
H A Ddeadlist_lock.ksh81 log_must zfs destroy -nv $TESTPOOL/$TESTFS/$DLDS@snap1%snap50
/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/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/lib/libzfs/common/
H A Dlibzfs_pool.c120 nvlist_t *nv, *nvl; local
126 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) {
127 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &ival) == 0);
129 verify(nvlist_lookup_string(nv, ZPROP_VALUE, &value) == 0);
145 nvlist_t *nv, *nvl; local
157 ZPOOL_CONFIG_VDEV_TREE, &nv) == 0) &&
158 (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value)
166 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) {
167 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &value) == 0);
169 verify(nvlist_lookup_uint64(nv, ZPROP_VALU
1579 nvlist_t *nv = NULL; local
1630 nvlist_t *nv = NULL; local
1743 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument
1805 nvlist_t *nv = NULL; local
2370 vdev_to_nvlist_iter(nvlist_t *nv, nvlist_t *search, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument
2642 vdev_is_online(nvlist_t *nv) argument
2687 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, size_t *rsz, boolean_t is_spare) argument
3911 set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path) argument
3939 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, int name_flags) argument
4166 nvlist_t *nv; local
4305 nvlist_t *nv; local
[all...]
/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/zfs/sys/
H A Ddsl_prop.h107 void dsl_prop_nvlist_add_uint64(nvlist_t *nv, zfs_prop_t prop, uint64_t value);
108 void dsl_prop_nvlist_add_string(nvlist_t *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/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/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);

Completed in 129 milliseconds

1234