xref: /openbmc/linux/fs/orangefs/orangefs-bufmap.h (revision 8730046c)
1 /*
2  * (C) 2001 Clemson University and The University of Chicago
3  *
4  * See COPYING in top-level directory.
5  */
6 
7 #ifndef __ORANGEFS_BUFMAP_H
8 #define __ORANGEFS_BUFMAP_H
9 
10 int orangefs_bufmap_size_query(void);
11 
12 int orangefs_bufmap_shift_query(void);
13 
14 int orangefs_bufmap_initialize(struct ORANGEFS_dev_map_desc *user_desc);
15 
16 void orangefs_bufmap_finalize(void);
17 
18 void orangefs_bufmap_run_down(void);
19 
20 int orangefs_bufmap_get(void);
21 
22 void orangefs_bufmap_put(int buffer_index);
23 
24 int orangefs_readdir_index_get(void);
25 
26 void orangefs_readdir_index_put(int buffer_index);
27 
28 int orangefs_bufmap_copy_from_iovec(struct iov_iter *iter,
29 				int buffer_index,
30 				size_t size);
31 
32 int orangefs_bufmap_copy_to_iovec(struct iov_iter *iter,
33 			      int buffer_index,
34 			      size_t size);
35 
36 #endif /* __ORANGEFS_BUFMAP_H */
37