1GENERIC_PIPE_BUF_STE(9) pipes API GENERIC_PIPE_BUF_STE(9)
2
3
4
6 generic_pipe_buf_steal - attempt to take ownership of a pipe_buffer
7
9 int generic_pipe_buf_steal(struct pipe_inode_info * pipe,
10 struct pipe_buffer * buf);
11
13 pipe
14 the pipe that the buffer belongs to
15
16 buf
17 the buffer to attempt to steal
18
20 This function attempts to steal the struct page attached to buf. If
21 successful, this function returns 0 and returns with the page locked.
22 The caller may then reuse the page for whatever he wishes; the typical
23 use is insertion into a different file page cache.
24
26Kernel Hackers Manual 3.10 June 2019 GENERIC_PIPE_BUF_STE(9)