1 /*
2  * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
3  *
4  */
5 
6 #ifndef __XEN_TMEM_CONTROL_H__
7 #define __XEN_TMEM_CONTROL_H__
8 
9 #ifdef CONFIG_TMEM
10 #include <public/sysctl.h>
11 /* Variables and functions that tmem_control.c needs from tmem.c */
12 
13 extern struct tmem_statistics tmem_stats;
14 extern struct tmem_global tmem_global;
15 
16 extern rwlock_t tmem_rwlock;
17 
18 int tmem_evict(void);
19 int do_tmem_control(struct xen_sysctl_tmem_op *op);
20 
21 struct client *client_create(domid_t cli_id);
22 int do_tmem_new_pool(domid_t this_cli_id, uint32_t d_poolid, uint32_t flags,
23                      uint64_t uuid_lo, uint64_t uuid_hi);
24 
25 int tmemc_shared_pool_auth(domid_t cli_id, uint64_t uuid_lo,
26                            uint64_t uuid_hi, bool auth);
27 #endif /* CONFIG_TMEM */
28 
29 #endif /* __XEN_TMEM_CONTROL_H__ */
30 
31 /*
32  * Local variables:
33  * mode: C
34  * c-file-style: "BSD"
35  * c-basic-offset: 4
36  * tab-width: 4
37  * indent-tabs-mode: nil
38  * End:
39  */
40