Lines Matching defs:read
185 /* Must read data /after/ reading the producer index. */
216 unsigned int read;
225 state.read = 0;
229 * A partial read across s/r leaves us out of sync with
246 if (state.read != sizeof(state.msg)) {
247 err = xb_read((void *)&state.msg + state.read,
248 sizeof(state.msg) - state.read);
251 state.read += err;
252 if (state.read != sizeof(state.msg))
273 state.read = 0;
276 err = xb_read(state.body + state.read, state.msg.len - state.read);
280 state.read += err;
281 if (state.read != state.msg.len)