FreeBSD/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
/*
 * Initialize the zc_nvlist_dst member to prepare for receiving an nvlist from
 * an ioctl().
 */
Initialize the zc_nvlist_dst member to prepare for receiving an nvlist from
an ioctl().
Initialize the zc_nvlist_dst member to prepare for receiving an nvlist from an ioctl () .
int
zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len)
{
	if (len == 0)
		len = 16 * 1024;
	zc->zc_nvlist_dst_size = len;
	zc->zc_nvlist_dst =
	    (uint64_t)(uintptr_t)zfs_alloc(hdl, zc->zc_nvlist_dst_size);
	if (zc->zc_nvlist_dst == 0)
		return (-1);
	return (0);
}
int zcmd_alloc_dst_nvlist ( libzfs_handle_t * hdl , zfs_cmd_t * zc , size_t len ) { if ( len == 0 ) len = 16 * 1024 ; zc -> zc_nvlist_dst_size = len ; zc -> zc_nvlist_dst = ( uint64_t ) ( uintptr_t ) zfs_alloc ( hdl , zc -> zc_nvlist_dst_size ) ; if ( zc -> zc_nvlist_dst == 0 ) return ( -1 ) ; return ( 0 ) ; }
Initialize the zc_nvlist_dst member to prepare for receiving an nvlist from
 an ioctl().
Initialize the zc_nvlist_dst member to prepare for receiving an nvlist from an ioctl () .