Lines Matching refs:cblock
287 static int record__aio_write(struct aiocb *cblock, int trace_fd,
292 cblock->aio_fildes = trace_fd;
293 cblock->aio_buf = buf;
294 cblock->aio_nbytes = size;
295 cblock->aio_offset = off;
296 cblock->aio_sigevent.sigev_notify = SIGEV_NONE;
299 rc = aio_write(cblock);
303 cblock->aio_fildes = -1;
312 static int record__aio_complete(struct mmap *md, struct aiocb *cblock)
320 aio_errno = aio_error(cblock);
324 written = aio_ret = aio_return(cblock);
331 rem_size = cblock->aio_nbytes - written;
334 cblock->aio_fildes = -1;
348 rem_off = cblock->aio_offset + written;
349 rem_buf = (void *)(cblock->aio_buf + written);
350 record__aio_write(cblock, cblock->aio_fildes,