summaryrefslogtreecommitdiff
path: root/linux/dev/include/linux/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev/include/linux/malloc.h')
-rw-r--r--linux/dev/include/linux/malloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/linux/dev/include/linux/malloc.h b/linux/dev/include/linux/malloc.h
new file mode 100644
index 0000000..084aa05
--- /dev/null
+++ b/linux/dev/include/linux/malloc.h
@@ -0,0 +1,17 @@
+#ifndef _LINUX_MALLOC_H
+#define _LINUX_MALLOC_H
+
+#include <linux/mm.h>
+
+#ifndef MACH_INCLUDE
+#define kmalloc linux_kmalloc
+#define kfree linux_kfree
+#define kfree_s linux_kfree_s
+#endif
+
+extern void *linux_kmalloc (unsigned int size, int priority);
+extern void linux_kfree (void *obj);
+
+#define linux_kfree_s(a,b) linux_kfree(a)
+
+#endif /* _LINUX_MALLOC_H */