Home | History | Annotate | Download | only in linux

Lines Matching full:buffer

30  * Per-cpu relay channel buffer
34 void *start; /* start of channel buffer */
35 void *data; /* start of current sub-buffer */
36 size_t offset; /* current offset into sub-buffer */
43 struct kref kref; /* channel buffer refcount */
44 struct page **page_array; /* array of current buffer pages */
45 unsigned int page_count; /* number of current buffer pages */
46 unsigned int finalized; /* buffer has been finalized */
47 size_t *padding; /* padding counts per sub-buffer */
59 size_t subbuf_size; /* sub-buffer size */
60 size_t n_subbufs; /* number of sub-buffers per buffer */
61 size_t alloc_size; /* total buffer size allocated */
75 * subbuf_start - called on buffer-switch to a new sub-buffer
76 * @buf: the channel buffer containing the new sub-buffer
77 * @subbuf: the start of the new sub-buffer
78 * @prev_subbuf: the start of the previous sub-buffer
79 * @prev_padding: unused space at the end of previous sub-buffer
84 * NOTE: subbuf_start will also be invoked when the buffer is
85 * created, so that the first sub-buffer can be initialized
89 * sub-buffer by calling subbuf_start_reserve() in this callback.
97 * buf_mapped - relay buffer mmap notification
98 * @buf: the channel buffer
107 * buf_unmapped - relay buffer unmap notification
108 * @buf: the channel buffer
116 * create_buf_file - create file to represent a relay channel buffer
120 * @buf: the channel buffer
121 * @is_global: outparam - set non-zero if the buffer should be global
123 * Called during relay_open(), once for each per-cpu buffer,
125 * represent the corresponding channel buffer. If the file is
130 * to represent the relay buffer.
133 * cause relay_open() to create a single global buffer rather
145 * remove_buf_file - remove file representing a relay channel buffer
148 * Called during relay_close(), once for each per-cpu buffer,
150 * channel buffer.
183 * Writes data into the current cpu's channel buffer.
185 * Protects the buffer by disabling interrupts. Use this
212 * Writes data into the current cpu's channel buffer.
214 * Protects the buffer by disabling preemption. Use
233 * relay_reserve - reserve slot in channel buffer
239 * Reserves a slot in the current cpu's channel buffer.
240 * Does not protect the buffer at all - caller must provide
260 * subbuf_start_reserve - reserve bytes at the start of a sub-buffer
261 * @buf: relay channel buffer
265 * a sub-buffer in the subbuf_start() callback.