/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...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | execvpe.c | 58 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 D | ql_init.c | 444 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 D | ql_ioctl.c | 493 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 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/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/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/lib/libast/common/obsolete/ |
H A D | spawn.c | 98 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 D | zpool_util.c | 67 num_logs(nvlist_t *nv) argument 73 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
|
H A D | zpool_vdev.c | 549 nvlist_t *nv; local 564 nv = top[t]; 570 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); 574 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, 576 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 600 verify(nvlist_lookup_uint64(nv, 886 make_disks(zpool_handle_t *zhp, nvlist_t *nv) argument 898 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); 900 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, 911 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PAT 1032 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, boolean_t replacing, boolean_t isspare) argument 1163 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; local [all...] |
H A D | zpool_util.h | 40 uint_t num_logs(nvlist_t *nv);
|
/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/lib/libnisdb/yptol/ |
H A D | dit_access_utils.h | 53 __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 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/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/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/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/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/lib/libzfs/common/ |
H A D | libzfs_pool.c | 117 nvlist_t *nv, *nvl; local 123 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) { 124 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &ival) == 0); 126 verify(nvlist_lookup_string(nv, ZPROP_VALUE, &value) == 0); 142 nvlist_t *nv, *nvl; local 154 ZPOOL_CONFIG_VDEV_TREE, &nv) == 0) && 155 (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value) 163 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) { 164 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &value) == 0); 166 verify(nvlist_lookup_uint64(nv, ZPROP_VALU 1429 nvlist_t *nv = NULL; local 1480 nvlist_t *nv = NULL; local 1593 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument 1655 nvlist_t *nv = NULL; local 1927 vdev_to_nvlist_iter(nvlist_t *nv, nvlist_t *search, boolean_t *avail_spare, boolean_t *l2cache, boolean_t *log) argument 2196 vdev_online(nvlist_t *nv) argument 2241 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, size_t *rsz, boolean_t is_spare) argument 3316 set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path) argument 3344 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, boolean_t verbose) argument 3528 nvlist_t *nv; local 3667 nvlist_t *nv; local [all...] |
/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/common/fs/zfs/sys/ |
H A D | dsl_prop.h | 107 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/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/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/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/itadm/ |
H A D | itadm.c | 771 char *nv; local 775 nv = NULL; 778 (void) nvpair_value_string(nvp, &nv); 780 if (nv != NULL) { 782 nn, nv); 1265 char *nv; local 1269 nv = NULL; 1272 (void) nvpair_value_string(nvp, &nv); 1274 if (nv != NULL) { 1276 nn, nv); 1690 char *nv; local 1899 char *nv; local [all...] |