/illumos-gate/usr/src/common/nvpair/ |
H A D | nvpair.c | 604 size_t nvsize; in nvp_buf_alloc() local 609 nvsize = len + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_alloc() 611 if ((buf = nv_mem_zalloc(priv, nvsize)) == NULL) in nvp_buf_alloc() 627 size_t nvsize = nvp->nvp_size + offsetof(i_nvp_t, nvi_nvp); in nvp_buf_free() local 629 nv_mem_free(priv, NVPAIR2I_NVP(nvp), nvsize); in nvp_buf_free() 2346 size_t nvsize; in nvs_decode_pairs() local 2353 while ((err = nvs->nvs_ops->nvs_nvpair(nvs, NULL, &nvsize)) == 0) { in nvs_decode_pairs() 2354 if (nvsize == 0) /* end of list */ in nvs_decode_pairs() 2358 if (nvsize < NVP_SIZE_CALC(1, 0)) in nvs_decode_pairs() 2361 if ((nvp = nvp_buf_alloc(nvl, nvsize)) == NULL) in nvs_decode_pairs() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | attrat.c | 44 static int (*nvsize)(nvlist_t *, size_t *, int); variable 96 nvsize = (int (*)(nvlist_t *, size_t *, int)) in attrat_init() 118 if (nvsize(request, &bufsize, NV_ENCODE_XDR) != 0) { in attr_nv_pack()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_fuid.c | 226 size_t nvsize = 0; in zfs_fuid_sync() local 269 VERIFY(nvlist_size(nvp, &nvsize, NV_ENCODE_XDR) == 0); in zfs_fuid_sync() 270 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync() 271 VERIFY(nvlist_pack(nvp, &packed, &nvsize, in zfs_fuid_sync() 274 zfsvfs->z_fuid_size = nvsize; in zfs_fuid_sync()
|
H A D | vdev_label.c | 1300 size_t nvsize; in vdev_label_write_bootenv() local 1303 error = nvlist_size(env, &nvsize, NV_ENCODE_XDR); in vdev_label_write_bootenv() 1307 if (nvsize >= sizeof (bootenv->vbe_bootenv)) { in vdev_label_write_bootenv() 1336 nvsize = sizeof (bootenv->vbe_bootenv); in vdev_label_write_bootenv() 1342 (void) strlcpy(bootenv->vbe_bootenv, nvbuf, nvsize); in vdev_label_write_bootenv() 1348 error = nvlist_pack(env, &nvbuf, &nvsize, NV_ENCODE_XDR, in vdev_label_write_bootenv()
|
H A D | spa.c | 1861 size_t nvsize = 0; in load_nvlist() local 1869 nvsize = *(uint64_t *)db->db_data; in load_nvlist() 1872 packed = kmem_alloc(nvsize, KM_SLEEP); in load_nvlist() 1873 error = dmu_read(spa->spa_meta_objset, obj, 0, nvsize, packed, in load_nvlist() 1876 error = nvlist_unpack(packed, nvsize, value, 0); in load_nvlist() 1877 kmem_free(packed, nvsize); in load_nvlist() 7856 size_t nvsize = 0; local 7859 VERIFY(nvlist_size(nv, &nvsize, NV_ENCODE_XDR) == 0); 7866 bufsize = P2ROUNDUP((uint64_t)nvsize, SPA_CONFIG_BLOCKSIZE); 7869 VERIFY(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR, [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_ckpt.c | 535 size_t nvsize = 0; in fmd_ckpt_save_nvlist() local 537 (void) nvlist_size(nvl, &nvsize, NV_ENCODE_NATIVE); in fmd_ckpt_save_nvlist() 538 fcfn->fcfn_size = (uint64_t)nvsize; in fmd_ckpt_save_nvlist() 540 (void) nvlist_pack(nvl, &nvbuf, &nvsize, NV_ENCODE_NATIVE, 0); in fmd_ckpt_save_nvlist() 541 ckp->ckp_ptr += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_save_nvlist() 607 size_t nvsize = 0; in fmd_ckpt_resv_case() local 609 (void) nvlist_size(cis->cis_nvl, &nvsize, NV_ENCODE_NATIVE); in fmd_ckpt_resv_case() 610 cip->ci_nvsz += sizeof (fcf_nvl_t) + nvsize; in fmd_ckpt_resv_case()
|
H A D | fmd_log.c | 517 size_t nvsize, easize, itsize, frsize; in fmd_log_append() local 526 (void) nvlist_size(ep->ev_nvl, &nvsize, NV_ENCODE_XDR); in fmd_log_append() 527 nvbuf = fmd_alloc(nvsize, FMD_SLEEP); in fmd_log_append() 528 (void) nvlist_pack(ep->ev_nvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0); in fmd_log_append() 537 err |= ea_set_item(&i2, CAT_FMA_NVLIST, nvbuf, nvsize); in fmd_log_append() 682 fmd_free(nvbuf, nvsize); in fmd_log_append()
|
/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 1139 size_t nvsize, buflen, hdrlen; in etm_send() local 1247 (void) nvlist_size(msgnvl, &nvsize, NV_ENCODE_XDR); in etm_send() 1250 buflen = nvsize + hdrlen; in etm_send() 1256 (void) etm_create_hdr(buf, mp->epm_ver, ETM_HDR_MSG, nvsize); in etm_send() 1258 if (rv = nvlist_pack(msgnvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0)) { in etm_send() 1286 ADDSTAT(Etm_stats.write_bytes.fmds_value.ui64, nvsize); in etm_send() 1288 etm_hex_dump(hdl, nvbuf, nvsize, 1); in etm_send()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | name.h | 172 #define nv_setsize(n,s) ((n)->nvsize = (s)) 174 #define nv_size(np) ((np)->nvsize)
|
H A D | nval.h | 124 uint32_t nvsize; /* size or base */ member 127 unsigned short nvsize; /* size or base */ member
|
/illumos-gate/usr/src/cmd/fm/modules/common/ip-transport/ |
H A D | ip.c | 150 size_t size, nvsize; in ip_fmdo_send() local 183 (void) nvlist_size(nvl, &nvsize, NV_ENCODE_XDR); in ip_fmdo_send() 184 size = r = sizeof (ip_hdr_t) + nvsize; in ip_fmdo_send() 199 iph->iph_size = htonl(nvsize); in ip_fmdo_send() 200 err = nvlist_pack(nvl, &nvbuf, &nvsize, NV_ENCODE_XDR, 0); in ip_fmdo_send()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtype.c | 254 np->nvsize = mp->nvsize; in put_chtype() 1036 if(nr->nvsize) in nv_mktype() 1077 nq->nvsize = np->nvsize; in nv_mktype() 1119 nq->nvsize = nr->nvsize; in nv_mktype() 1503 nq->nvsize = tp->nvsize; in nv_mkstruct() 1528 nq->nvsize = nr->nvsize; in nv_mkstruct()
|
H A D | nvdisc.c | 916 unsigned short size = mp->nvsize; in nv_clone() 942 if(mp->nvsize == size) in nv_clone() 1034 np->nvsize = mp->nvsize; in nv_mkclone()
|
H A D | array.c | 1436 fp->ptr = !np->nvsize; in array_fixed_init()
|
H A D | name.c | 3754 np->nvsize = size; in nv_setsize()
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 255 size_t nvsize = *(uint64_t *)data; in dump_packed_nvlist() local 256 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); in dump_packed_nvlist() 258 VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH)); in dump_packed_nvlist() 260 VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0); in dump_packed_nvlist() 262 umem_free(packed, nvsize); in dump_packed_nvlist() 2609 size_t nvsize = 0; in dump_config() local 2617 nvsize = *(uint64_t *)db->db_data; in dump_config() 2622 spa->spa_config_object, (void *)&nvsize, 1); in dump_config()
|