Lines Matching defs:buffer

37  * SECTION: the internal buffer
41 * The internal buffer is meant to store obaque blobs of data, so it does
47 * To allow for multiple independent readers we create one internal buffer
48 * each time the device is opened and destroy the buffer when the file is
49 * closed again. The number of pages used for this buffer is determined by
52 * One record can be written to a buffer by using the functions
54 * buffer and reserve the space for the data)
69 * All information necessary to keep track of an internal buffer is kept in
70 * a struct eerbuffer. The buffer specific to a file pointer is strored in
72 * existing buffers, each buffer is also added to the bufferlist.
78 * To avoid races between writing to a buffer on the one side and creating
88 char **buffer;
101 * How many free bytes are available on the buffer.
112 * How many bytes of buffer space are used.
125 * to the buffer. Make sure to call dasd_eer_start_record first, to
143 memcpy(eerb->buffer[headindex]+localhead, nextdata, len);
170 memcpy(nextdata, eerb->buffer[tailindex] + localtail, len);
182 * Whenever you want to write a blob of data to the internal buffer you
184 * of bytes that will be written to the buffer. If necessary it will remove
541 * On the one side we need a lock to access our internal buffer, on the
566 eerb->buffer = kmalloc_array(eerb->buffer_page_count, sizeof(char *),
568 if (!eerb->buffer) {
572 if (dasd_eer_allocate_buffer_pages(eerb->buffer,
574 kfree(eerb->buffer);
595 dasd_eer_free_buffer_pages(eerb->buffer, eerb->buffer_page_count);
596 kfree(eerb->buffer);