Skip to content

Commit

Permalink
Dis-Integrated Memory Manager Library from Project
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinites committed May 20, 2020
1 parent 444a0a2 commit 1bbd601
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions LinuxMemoryManager/uapi_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ void
mm_instantiate_new_page_family(
char *struct_name,
uint32_t struct_size);

#if 0
#define XCALLOC(units, struct_name) \
(xcalloc(#struct_name, units))
#endif
#define XCALLOC(units, struct_name) \
(calloc(units, sizeof(struct_name)))

#define MM_REG_STRUCT(struct_name) \
(mm_instantiate_new_page_family(#struct_name, sizeof(struct_name)))

#define XFREE(ptr) \
xfree(ptr)
free(ptr)

#endif /* __UAPI_MM__ */

0 comments on commit 1bbd601

Please sign in to comment.