1GENERIC_PIPE_BUF_MAP(9) pipes API GENERIC_PIPE_BUF_MAP(9)
2
3
4
6 generic_pipe_buf_map - virtually map a pipe buffer
7
9 void * generic_pipe_buf_map(struct pipe_inode_info * pipe,
10 struct pipe_buffer * buf, int atomic);
11
13 pipe
14 the pipe that the buffer belongs to
15
16 buf
17 the buffer that should be mapped
18
19 atomic
20 whether to use an atomic map
21
23 This function returns a kernel virtual address mapping for the
24 pipe_buffer passed in buf. If atomic is set, an atomic map is provided
25 and the caller has to be careful not to fault before calling the unmap
26 function.
27
28 Note that this function calls kmap_atomic if atomic != 0.
29
31Kernel Hackers Manual 3.10 June 2019 GENERIC_PIPE_BUF_MAP(9)