From f85c9b875b060681b51f57b15074ba1c7c9f5636 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期一, 20 七月 2020 11:10:02 +0800
Subject: [PATCH] update

---
 queue/include/mm.h |   21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/queue/include/mm.h b/queue/include/mm.h
index fd3fba3..f0ab764 100644
--- a/queue/include/mm.h
+++ b/queue/include/mm.h
@@ -2,26 +2,19 @@
 #define MM_HDR_H      /* Prevent accidental double inclusion */
 
 #include <usg_common.h>
-
 #include "usg_typedef.h"
-#include <sys/sem.h>
-#include <sys/shm.h>
-#define MAX_HEAP (512*(1<<20))  /* 20 MB */
-/* Hard-coded keys for IPC objects */
+#include "hashtable.h"
 
-#define SHM_KEY 0x1234          /* Key for shared memory segment */
-#define SHM_MUTEX_KEY 0x8800
+extern bool mm_init(size_t heap_size);
+extern bool mm_destroy(void);
 
-#define OBJ_PERMS (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP)
-
-extern bool mm_init(size_t offset, void **addr);
-extern void mm_destroy(void);
 extern void *mm_malloc (size_t size);
 extern void mm_free (void *ptr);
 extern void *mm_realloc(void *ptr, size_t size);
+extern hashtable_t * mm_get_hashtable();
 
-extern int mm_checkheap(int verbose);
+// extern int mm_checkheap(int verbose);
 
-extern void *get_mm_start_brk();
-extern size_t get_mm_max_size();
+// extern void *get_mm_start_brk();
+// extern size_t get_mm_max_size();
 #endif

--
Gitblit v1.8.0