Lines Matching refs:buffers
12 as a set of per-cpu kernel buffers ('channel buffers'), each
14 clients write into the channel buffers using efficient write
19 are associated with the channel buffers using the API described below.
21 The format of the data logged into the channel buffers is completely
36 sub-buffers. Messages are written to the first sub-buffer until it is
38 the next (if available). Messages are never split across sub-buffers.
60 read sub-buffers; thus in cases where read(2) is being used to drain
61 the channel buffers, special-purpose communication between kernel and
96 allowing both to convey the state of buffers (full, empty, amount of
98 consumes the read sub-buffers; thus in cases where read(2) is being
99 used to drain the channel buffers, special-purpose communication
200 channel buffers. Each channel buffer will have an associated file
214 associated with its channel buffers, the user must provide definitions
267 number of sub-buffers by the sub-buffer size passed into relay_open().
268 The idea behind sub-buffers is that they're basically an extension of
269 double-buffering to N buffers, and they also allow applications to
272 of sub-buffers is completely dependent on the application and even for
329 be lost, if the number of unconsumed sub-buffers equals the total
330 number of sub-buffers in the channel. It should be clear that if
331 there is no consumer or if the consumer can't consume sub-buffers fast
336 per-cpu channel buffers, each implemented as a circular buffer
337 subdivided into one or more sub-buffers. Messages are written into
367 If the current buffer is full, i.e. all sub-buffers remain unconsumed,
370 current set of ready sub-buffers. For the relay_buf_full() function
372 interface when sub-buffers have been consumed via
376 ready sub-buffers will relay_buf_full() return 0, in which case the
444 written, either in space reserved in the sub-buffers themselves or as
456 The channel and its associated buffers are destroyed when there are no
457 longer any references to any of the channel buffers. relay_flush()
458 forces a sub-buffer switch on all the channel buffers, and can be used
459 to finalize and process the last sub-buffers before the channel is