Lines Matching defs:data

89  *   |  - data ...         |      |  - data ...       |
105 * | - data (embedded) | | - data ... |
128 static int i_get_value_size(data_type_t type, const void *data, uint_t nelem);
130 uint_t nelem, const void *data);
451 i_validate_nvpair_value(data_type_t type, uint_t nelem, const void *data)
455 if (*(boolean_t *)data != B_TRUE &&
456 *(boolean_t *)data != B_FALSE)
463 if (((boolean_t *)data)[i] != B_TRUE &&
464 ((boolean_t *)data)[i] != B_FALSE)
711 * The data argument controls the behavior in case of the data types
714 * Is data == NULL then the size of the string(s) is excluded.
717 i_get_value_size(data_type_t type, const void *data, uint_t nelem)
765 if (data == NULL)
768 value_sz = strlen(data) + 1;
803 if (data != NULL) {
804 char *const *strs = data;
857 data_type_t type, uint_t nelem, const void *data)
868 if (nelem != 0 && data == NULL)
873 * In case of data types DATA_TYPE_STRING and DATA_TYPE_STRING_ARRAY
876 if ((value_sz = i_get_value_size(type, data, nelem)) < 0)
879 if (i_validate_nvpair_value(type, nelem, data) != 0)
889 if (data == nvl || data == NULL)
893 nvlist_t **onvlp = (nvlist_t **)data;
922 char *const *strs = data;
938 nvlist_t *onvl = (nvlist_t *)data;
947 nvlist_t **onvlp = (nvlist_t **)data;
968 bcopy(data, NVP_VALUE(nvp), value_sz);
1249 nvpair_value_common(nvpair_t *nvp, data_type_t type, uint_t *nelem, void *data)
1255 * For non-array types, we copy the data.
1278 if (data == NULL)
1280 bcopy(NVP_VALUE(nvp), data,
1288 if (data == NULL)
1290 *(void **)data = (void *)NVP_VALUE(nvp);
1307 if (nelem == NULL || data == NULL)
1310 *(void **)data = (void *)NVP_VALUE(nvp);
1312 *(void **)data = NULL;
1324 uint_t *nelem, void *data)
1341 return (nvpair_value_common(nvp, type, nelem, data));
2211 bzero(nvlp, len); /* don't trust packed data */
2448 * It points to the current data that we are decoding.
2449 * The amount of data left in the buffer is equal to n_end - n_curr.
2662 * We do the initial bcopy of the data before we look at
2684 * In case of data types DATA_TYPE_STRING and DATA_TYPE_STRING_ARRAY
2826 * a string is coded as size (4 bytes) and data
2827 * - data type (4 bytes)
2829 * - data
2836 /* xdr data must be 4 byte aligned */
2913 * encode_size, decode_size, name string, data type, nelem, data
2947 * In case of data types DATA_TYPE_STRING and DATA_TYPE_STRING_ARRAY
2953 /* if there is no data to extract then return */
3073 bzero(buf, len); /* don't trust packed data */
3104 * encode_size + decode_size + name string size + data type + nelem
3204 * The size of a xdr packed nvpair without any data is 5 words.
3206 * Using the size of the data directly as an estimate would be ok
3207 * in all cases except one. If the data type is of DATA_TYPE_STRING_ARRAY
3211 * If the data is of type DATA_TYPE_STRING_ARRAY and all the strings are