-#define SVM_VERSION ((1<<16) | 1) /* set to declare region ready. */
-
-#define SVM_FLAGS_MHEAP (1<<0) /* region contains an mheap */
-#define SVM_FLAGS_FILE (1<<1) /* region backed by one or more files */
-#define SVM_FLAGS_NODATA (1<<2) /* region will be further subdivided */
-#define SVM_FLAGS_NEED_DATA_INIT (1<<3)
-
-#define SVM_PVT_MHEAP_SIZE (128<<10) /* region's private mheap (128k) */
-
-typedef struct svm_region_ {
- volatile uword version;
- pthread_mutex_t mutex;
- pthread_cond_t condvar;
- int mutex_owner_pid; /* in case of trouble */
- int mutex_owner_tag;
- uword flags;
- uword virtual_base; /* base of the region object */
- uword virtual_size;
- void *region_heap;
- void *data_base; /* data portion base address */
- void *data_heap; /* data heap, if any */
- volatile void *user_ctx; /* user context pointer */
- /* stuff allocated in the region's heap */
- uword bitmap_size; /* nbits in virtual alloc bitmap */
- uword *bitmap; /* the bitmap */
- char *region_name;
- char *backing_file;
- char **filenames;
- uword *client_pids;
- /* pad */
-
- /* next page:
- * (64K) clib heap for the region itself
- *
- * data_base -> whatever is in this region
- */
+#define SVM_VERSION ((1<<16) | 1) /* set to declare region ready. */
+
+#define SVM_FLAGS_MHEAP (1<<0) /* region contains an mheap */
+#define SVM_FLAGS_FILE (1<<1) /* region backed by one or more files */
+#define SVM_FLAGS_NODATA (1<<2) /* region will be further subdivided */
+#define SVM_FLAGS_NEED_DATA_INIT (1<<3)
+
+#define SVM_PVT_MHEAP_SIZE (128<<10) /* region's private mheap (128k) */
+
+typedef struct svm_region_
+{
+ volatile uword version;
+ pthread_mutex_t mutex;
+ pthread_cond_t condvar;
+ int mutex_owner_pid; /* in case of trouble */
+ int mutex_owner_tag;
+ uword flags;
+ uword virtual_base; /* base of the region object */
+ uword virtual_size;
+ void *region_heap;
+ void *data_base; /* data portion base address */
+ void *data_heap; /* data heap, if any */
+ volatile void *user_ctx; /* user context pointer */
+ /* stuff allocated in the region's heap */
+ uword bitmap_size; /* nbits in virtual alloc bitmap */
+ uword *bitmap; /* the bitmap */
+ char *region_name;
+ char *backing_file;
+ char **filenames;
+ uword *client_pids;
+ /* pad */
+
+ /* next page:
+ * (64K) clib heap for the region itself
+ *
+ * data_base -> whatever is in this region
+ */