Lines Matching refs:val
153 pool_value_set_uint64(pool_value_t *pv, uint64_t val)
158 pv->pv_u.u = val;
166 pool_value_set_int64(pool_value_t *pv, int64_t val)
171 pv->pv_u.i = val;
180 pool_value_set_double(pool_value_t *pv, double val)
185 pv->pv_u.d = val;
193 pool_value_set_bool(pool_value_t *pv, uchar_t val)
198 pv->pv_u.b = !!val; /* Lock value at 0 or 1 */
202 * Try to make an internal copy of the val, returning PO_SUCCESS or
206 pool_value_set_string(pool_value_t *pv, const char *val)
211 if (val == NULL || strlen(val) >= PV_VALUE_MAX_LEN) {
215 if ((pv->pv_u.s = atom_string(val)) == NULL)
229 pool_value_t *val;
231 if ((val = malloc(sizeof (pool_value_t))) == NULL) {
235 (void) memset(val, 0, sizeof (pool_value_t));
236 val->pv_class = POC_INVAL;
237 return (val);