Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinites committed Jun 20, 2020
2 parents 289ba74 + 1bbd601 commit edb6103
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 edb6103

Please sign in to comment.