Home | History | Annotate | Download | only in libcollector

Lines Matching refs:buffers

51 #define NBUFS  64 /* Number of text buffers */
82 Buffer *buffers; /* array of text buffers */
238 /* allocate our buffers in virtual memory */
239 /* later, we will remap buffers individually to the file */
269 /* set up an array of buffers, pointing them to the virtual addresses */
272 hndl->buffers = (Buffer*) __collector_allocCSize (__collector_heap, NBUFS * sizeof (Buffer), 1);
273 if (hndl->buffers == NULL)
275 TprintfT (0, "create_handle allocCSize for hndl->buffers failed\n");
281 Buffer *buf = &hndl->buffers[i];
355 * First, make sure that buffers are in some "coherent" state:
400 Buffer *buf = &hndl->buffers[indx];
406 /* wait for buffers to be deleted */
410 Buffer *buf = &hndl->buffers[i];
423 __collector_freeCSize (__collector_heap, hndl->buffers, NBUFS * sizeof (Buffer));
860 * NBUFS buffers at any one time.
877 * . acquire and map new Buffers if needed to complete the message
880 * - write to the corresponding buffers
890 * no new Buffers are needed -- the thread does not acquire the lock.
966 if (__collector_cas_32 (&hndl->buffers[ibuf].state, ST_FREE, ST_BUSY) == ST_FREE)
970 TprintfT (0, "newBuffer ERROR: all buffers busy for %s\n", hndl->fname);
973 Buffer *nbuf = hndl->buffers + ibuf;
1038 /* number of new buffers to map */
1050 /* things are simple if we don't need new buffers */
1060 indx, hndl->buffers[indx].vaddr, len, (long long) foff, src);
1061 writeBuffer (&hndl->buffers[indx], foff & (blksz - 1), src, len);
1076 /* but if we need new buffers, "lock" the handle pointer */
1087 /* map new buffers */
1117 /* if we couldn't map all the buffers we needed, don't write any part of the string */
1129 writeBuffer (&hndl->buffers[indx], blk_off, src, blksz - blk_off);
1142 writeBuffer (&hndl->buffers[buf_indices[ibuf]], 0, src, clen);