Lines Matching full:pipe

18  *	struct pipe_buffer - a linux kernel pipe buffer
19 * @page: the page containing the data for the pipe buffer
23 * @flags: pipe buffer flags. See above.
35 * struct pipe_inode_info - a linux kernel pipe
37 * @rd_wait: reader wait point in case of empty pipe
38 * @wr_wait: writer wait point in case of full pipe
44 * @nr_accounted: The amount this pipe accounts for in user->pipe_bufs
46 * @readers: number of current readers of this pipe
47 * @writers: number of current writers of this pipe
48 * @files: number of struct file referring this pipe (protected by ->i_lock)
53 * @bufs: the circular array of pipe buffers
54 * @user: the user who created this pipe
55 * @watch_queue: If this pipe is a watch_queue, this is the stuff for that
90 * the meaning of each operation. Also see the kerneldoc in fs/pipe.c for the
91 * pipe and generic variants of these hooks.
95 * ->confirm() verifies that the data in the pipe buffer is there
96 * and that the contents are good. If the pages in the pipe belong
104 * When the contents of this pipe buffer has been completely
110 * Attempt to take ownership of the pipe buffer and its contents.
112 * of the pipe (the buf->page) is locked and now completely owned by the
120 * Get a reference to the pipe buffer.
126 * pipe_empty - Return true if the pipe is empty
127 * @head: The pipe ring head pointer
128 * @tail: The pipe ring tail pointer
136 * pipe_occupancy - Return number of slots used in the pipe
137 * @head: The pipe ring head pointer
138 * @tail: The pipe ring tail pointer
146 * pipe_full - Return true if the pipe is full
147 * @head: The pipe ring head pointer
148 * @tail: The pipe ring tail pointer
159 * @head: The pipe ring head pointer
160 * @tail: The pipe ring tail pointer
161 * @pipe: The pipe info structure
164 struct pipe_inode_info *pipe) in pipe_space_for_user() argument
169 if (p_occupancy >= pipe->max_usage) in pipe_space_for_user()
171 p_space = pipe->ring_size - p_occupancy; in pipe_space_for_user()
172 if (p_space > pipe->max_usage) in pipe_space_for_user()
173 p_space = pipe->max_usage; in pipe_space_for_user()
179 * @pipe: the pipe that the buffer belongs to
184 static inline __must_check bool pipe_buf_get(struct pipe_inode_info *pipe, in pipe_buf_get() argument
187 return buf->ops->get(pipe, buf); in pipe_buf_get()
192 * @pipe: the pipe that the buffer belongs to
195 static inline void pipe_buf_release(struct pipe_inode_info *pipe, in pipe_buf_release() argument
201 ops->release(pipe, buf); in pipe_buf_release()
205 * pipe_buf_confirm - verify contents of the pipe buffer
206 * @pipe: the pipe that the buffer belongs to
209 static inline int pipe_buf_confirm(struct pipe_inode_info *pipe, in pipe_buf_confirm() argument
214 return buf->ops->confirm(pipe, buf); in pipe_buf_confirm()
219 * @pipe: the pipe that the buffer belongs to
222 static inline bool pipe_buf_try_steal(struct pipe_inode_info *pipe, in pipe_buf_try_steal() argument
227 return buf->ops->try_steal(pipe, buf); in pipe_buf_try_steal()
234 /* Pipe lock and unlock operations */
243 /* Wait for a pipe to be readable/writable while dropping the pipe lock */
250 /* Generic pipe buffer ops functions */
267 int pipe_resize_ring(struct pipe_inode_info *pipe, unsigned int nr_slots);