Lines Matching refs:buffers
9 as a set of per-cpu kernel buffers ('channel buffers'), each
11 clients write into the channel buffers using efficient write
16 are associated with the channel buffers using the API described below.
18 The format of the data logged into the channel buffers is completely
33 sub-buffers. Messages are written to the first sub-buffer until it is
35 the next (if available). Messages are never split across sub-buffers.
57 read sub-buffers; thus in cases where read(2) is being used to drain
58 the channel buffers, special-purpose communication between kernel and
93 allowing both to convey the state of buffers (full, empty, amount of
95 consumes the read sub-buffers; thus in cases where read(2) is being
96 used to drain the channel buffers, special-purpose communication
193 channel buffers. Each channel buffer will have an associated file
207 associated with its channel buffers, the user must provide definitions
260 number of sub-buffers by the sub-buffer size passed into relay_open().
261 The idea behind sub-buffers is that they're basically an extension of
262 double-buffering to N buffers, and they also allow applications to
265 of sub-buffers is completely dependent on the application and even for
322 be lost, if the number of unconsumed sub-buffers equals the total
323 number of sub-buffers in the channel. It should be clear that if
324 there is no consumer or if the consumer can't consume sub-buffers fast
329 per-cpu channel buffers, each implemented as a circular buffer
330 subdivided into one or more sub-buffers. Messages are written into
360 If the current buffer is full, i.e. all sub-buffers remain unconsumed,
363 current set of ready sub-buffers. For the relay_buf_full() function
365 interface when sub-buffers have been consumed via
369 ready sub-buffers will relay_buf_full() return 0, in which case the
437 written, either in space reserved in the sub-buffers themselves or as
449 The channel and its associated buffers are destroyed when there are no
450 longer any references to any of the channel buffers. relay_flush()
451 forces a sub-buffer switch on all the channel buffers, and can be used
452 to finalize and process the last sub-buffers before the channel is