Lines Matching full:tail
44 (2) A 'tail' index - the point at which the consumer finds the next item in
47 Typically when the tail pointer is equal to the head pointer, the buffer is
48 empty; and the buffer is full when the head pointer is one less than the tail
51 The head index is incremented when items are added, and the tail index when
52 items are removed. The tail index should never jump the head index, and both
116 moving the tail index.
122 will return a lower bound as the consumer controls the tail index, but the
160 unsigned long tail = READ_ONCE(buffer->tail);
162 if (CIRC_SPACE(head, tail, buffer->size) >= 1) {
201 unsigned long tail = buffer->tail;
203 if (CIRC_CNT(head, tail, buffer->size) >= 1) {
206 struct item *item = buffer[tail];
210 /* Finish reading descriptor before incrementing tail. */
211 smp_store_release(buffer->tail,
212 (tail + 1) & (buffer->size - 1));
219 before it writes the new tail pointer, which will erase the item.