cc [ flag ... ] file... -lzonestat [ libary ... ] #include <zonestat.h> data_type_t zs_property_type(zs_property_t property);
char *zs_property_string(zs_property_t property);
double zs_property_double(zs_property_t property);
uint64_t zs_property_uint64(zs_property_t property);
int64_t zs_property_int64(zs_property_t property);
uint_t zs_property_uint(zs_property_t property);
int zs_property_int(zs_property_t property);
These functions retrieve the values from zs_property_t objects.
The zs_property_type() function returns a value from the data_type_t enumeration defined in sys/nvpair.h, which is one of:
|
The zs_property_string() function returns a char * pointing to a string. Callers must copy this string in order to retain it after freeing the zs_usage_t object from which this property was obtained.
The zs_property_uint64(), zs_property_int64(), zs_property_uint(), zs_property_int(), and zs_property_double() functions return the value contained in the property object.
See Description.
If a zs_property_*() function is called with a property of the wrong type, the function will abort with abort(3C).
See attributes(5) for descriptions of the following attributes:
|
zonestat(1), pooladm(1M) , psrset(1M), rcapadm(1M) , swap(1M), zoneadm(1M) , zonestatd(1M), abort(3C), libpool(3LIB), libzonestat (3LIB), zs_pset(3ZONESTAT), zs_open(3ZONESTAT), zs_pset_zone(3ZONESTAT), zs_resource(3ZONESTAT), zs_usage(3ZONESTAT), zs_zone(3ZONESTAT), attributes (5), resource_controls(5)