Lines Matching refs:cblock
282 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument
287 cblock->aio_fildes = trace_fd; in record__aio_write()
288 cblock->aio_buf = buf; in record__aio_write()
289 cblock->aio_nbytes = size; in record__aio_write()
290 cblock->aio_offset = off; in record__aio_write()
291 cblock->aio_sigevent.sigev_notify = SIGEV_NONE; in record__aio_write()
294 rc = aio_write(cblock); in record__aio_write()
298 cblock->aio_fildes = -1; in record__aio_write()
307 static int record__aio_complete(struct mmap *md, struct aiocb *cblock) in record__aio_complete() argument
315 aio_errno = aio_error(cblock); in record__aio_complete()
319 written = aio_ret = aio_return(cblock); in record__aio_complete()
326 rem_size = cblock->aio_nbytes - written; in record__aio_complete()
329 cblock->aio_fildes = -1; in record__aio_complete()
343 rem_off = cblock->aio_offset + written; in record__aio_complete()
344 rem_buf = (void *)(cblock->aio_buf + written); in record__aio_complete()
345 record__aio_write(cblock, cblock->aio_fildes, in record__aio_complete()