Searched defs:packed (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/common/nvpair/
H A Dfnvpair.c79 char *packed = 0; local
80 VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE,
82 return (packed);
H A Dnvpair.c484 * trusted. This function is used when decoding packed nvpairs.
2231 bzero(nvlp, len); /* don't trust packed data */
2464 * This structure is used when decoding a packed nvpair in
2466 * packed nvpair. n_end is a pointer to the end of the buffer.
2471 * n_flag is used to recognize a packed embedded list.
2547 return (0); /* packed embedded list */
2560 * if calculate for packed embedded list
2604 nvlist_t *packed = (void *) local
2607 * Null out the pointer that is meaningless in the packed
2611 bzero(&packed
2624 nvlist_t *packed = (nvlist_t *)((uintptr_t)value + len); local
[all...]
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c125 char *packed; local
132 packed = fnvlist_pack(source, &size);
133 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed;
168 fnvlist_pack_free(packed, size);
571 char *packed = NULL; local
598 packed = fnvlist_pack(props, &size);
599 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed;
633 if (packed != NULL)
634 fnvlist_pack_free(packed, size);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_fuid.c42 * The FUID table is stored as a packed nvlist of an array
130 char *packed; local
133 packed = kmem_alloc(fuid_size, KM_SLEEP);
135 fuid_size, packed, DMU_READ_PREFETCH) == 0);
136 VERIFY(nvlist_unpack(packed, fuid_size,
159 kmem_free(packed, fuid_size);
231 char *packed; local
274 packed = kmem_alloc(nvsize, KM_SLEEP);
275 VERIFY(nvlist_pack(nvp, &packed, &nvsize,
280 zfsvfs->z_fuid_size, packed, t
[all...]
H A Ddsl_dataset.c1770 void *packed; local
1813 packed = fnvlist_pack(token_nv, &packed_size);
1817 compressed_size = gzip_compress(packed, compressed,
1834 kmem_free(packed, packed_size);
H A Dspa.c1581 char *packed = NULL; local
1593 packed = kmem_alloc(nvsize, KM_SLEEP);
1594 error = dmu_read(spa->spa_meta_objset, obj, 0, nvsize, packed,
1597 error = nvlist_unpack(packed, nvsize, value, 0);
1598 kmem_free(packed, nvsize);
6045 char *packed = NULL; local
6058 packed = kmem_alloc(bufsize, KM_SLEEP);
6060 VERIFY(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR,
6062 bzero(packed + nvsize, bufsize - nvsize);
6064 dmu_write(spa->spa_meta_objset, obj, 0, bufsize, packed, t
[all...]
H A Dzfs_ioctl.c1303 char *packed; local
1313 packed = kmem_alloc(size, KM_SLEEP);
1315 if ((error = ddi_copyin((void *)(uintptr_t)nvl, packed, size,
1317 kmem_free(packed, size);
1321 if ((error = nvlist_unpack(packed, size, &list, 0)) != 0) {
1322 kmem_free(packed, size);
1326 kmem_free(packed, size);
1374 char *packed = NULL; local
1383 packed = fnvlist_pack(nvl, &size);
1384 if (ddi_copyout(packed, (voi
[all...]
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c125 char *packed; local
131 /* copyin packed nvlist */
132 if ((packed = kmem_alloc(packed_sz, KM_SLEEP)) == NULL)
135 if (copyin(packed_buf, packed, packed_sz) != 0) {
141 /* unpack packed nvlist */
142 if ((ret = nvlist_unpack(packed, packed_sz, &dest, KM_SLEEP)) != 0) {
160 kmem_free(packed, packed_sz);
196 /* copyout packed nvlist */
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_profile.c895 char *packed; local
902 /* copyin packed profile nvlist */
903 packed = kmem_alloc(packed_sz, KM_NOSLEEP);
904 if (packed == NULL)
906 err = copyin(packed_usr, packed, packed_sz);
908 /* unpack packed profile nvlist */
912 else if (err = nvlist_unpack(packed, packed_sz, &profile, KM_NOSLEEP))
916 kmem_free(packed, packed_sz);
1046 * modctl(). modctl calls this function. The input is a packed nvlist.
1049 devname_profile_update(char *packed, size_ argument
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_util.c786 char *packed; local
791 if ((packed = zfs_alloc(hdl, len)) == NULL)
794 verify(nvlist_pack(nvl, &packed, &len, NV_ENCODE_NATIVE, 0) == 0);
796 *outnv = (uint64_t)(uintptr_t)packed;
H A Dlibzfs_sendrecv.c1535 void *packed = zfs_alloc(hdl, packed_len); local
1537 if (uncompress(packed, &packed_len_long, compressed, len) != Z_OK ||
1539 free(packed);
1548 int error = nvlist_unpack(packed, packed_len, &nv, KM_SLEEP);
1549 free(packed);
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd.c3655 char *packed = NULL; local
3668 if ((rc = nvlist_pack(nv, &packed, &len, NV_ENCODE_NATIVE, KM_SLEEP))) {
3674 zc->zc_nvlist_src = (uint64_t)(intptr_t)packed;
3682 if (packed)
3683 kmem_free(packed, len);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_consume.c689 * Block Elements (U+2581 through U+2588, inclusive) to represent our packed
711 * packed aggregation. To do this, we will check for terminals
1794 boolean_t packed = pd->dtpa_agghist || pd->dtpa_aggpack; local
1809 if (packed && pd->dtpa_agghisthdr != agg->dtagd_varid) {
1911 width = packed ? fmt->packedwidth : fmt->width;
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c230 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); local
232 VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH));
234 VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0);
236 umem_free(packed, nvsize);
1756 dump_none, /* packed nvlist */
1757 dump_packed_nvlist, /* packed nvlist size */

Completed in 153 milliseconds