Lines Matching refs:data
50 * Preparse instantiation data for a dns_resolver key.
52 * For normal hostname lookups, the data must be a NUL-terminated string, with
55 * If the data contains a '#' characters, then we take the clause after each
56 * one to be an option of the form 'key=value'. The actual data of interest is
61 * For server list requests, the data must begin with a NUL char and be
62 * followed by a byte indicating the version of the data format. Version 1
98 const char *data = prep->data, *end, *opt;
100 if (datalen <= 1 || !data)
103 if (data[0] == 0) {
110 v1 = (const struct dns_server_list_v1_header *)data;
136 kenter("'%*.*s',%u", datalen, datalen, data, datalen);
138 if (!data || data[datalen - 1] != '\0')
142 /* deal with any options embedded in the data */
143 end = data + datalen;
144 opt = memchr(data, '#', datalen);
146 /* no options: the entire data is the result */
152 result_len = opt - data;
196 prep->payload.data[dns_key_error] = ERR_PTR(-derrno);
209 if (prep->payload.data[dns_key_error]) {
210 kleave(" = 0 [h_error %ld]", PTR_ERR(prep->payload.data[dns_key_error]));
225 memcpy(upayload->data, data, result_len);
226 upayload->data[result_len] = '\0';
228 prep->payload.data[dns_key_data] = upayload;
234 * Clean up the preparse data
240 kfree(prep->payload.data[dns_key_data]);
298 int err = PTR_ERR(key->payload.data[dns_key_error]);
308 * read the DNS data
314 int err = PTR_ERR(key->payload.data[dns_key_error]);