forked from zincsoda/libheca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibheca.h
32 lines (25 loc) · 998 Bytes
/
libheca.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Steve Walsh <[email protected]>
*/
#ifndef LIB_HECA_DEF_H_
#define LIB_HECA_DEF_H_
#include "dsm_init.h"
#define AUTO_UNMAP 1
#define NO_AUTO_UNMAP 0
/*
dsm_master_init: initializes the master node for a heca connection. The
function requires a pre-initialized svm_arry and mr_array. The auto_unmap
flag tells libheca to automatically unmap the memory region when creating
it. There are some cases where the user may not way to automatically unmap
this memory region and do so at a later stage when more information is
known about the system.
*/
int dsm_master_init (int svm_count, struct svm_data *svm_array, int mr_count,
struct unmap_data *mr_array, int auto_unmap);
/*
dsm_client_init: initializes the client node for a heca connection.
*/
int dsm_client_init (void *dsm_mem, unsigned long dsm_mem_sz, int local_svm_id,
struct sockaddr_in *master_addr, int auto_unmap);
void dsm_cleanup(int fd);
#endif /* LIB_HECA_DEF_H_ */