Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / valloc.h
index ee646e5f66505cd7e23c0afdb6a38601c12a5df9..779d5467e52e8d5cb3071e4cc51eddf097d578b8 100644 (file)
@@ -1,13 +1,36 @@
 #ifndef __LUNAIX_VALLOC_H
 #define __LUNAIX_VALLOC_H
 
+#include <lunaix/compiler.h>
+
 void*
 valloc(unsigned int size);
 
+void*
+vzalloc(unsigned int size);
+
+void*
+vcalloc(unsigned int size, unsigned int count);
+
 void
 vfree(void* ptr);
 
+void
+vfree_safe(void* ptr);
+
+void*
+valloc_dma(unsigned int size);
+
+void*
+vzalloc_dma(unsigned int size);
+
+void
+vfree_dma(void* ptr);
+
 void
 valloc_init();
 
+extern void 
+valloc_ensure_valid(void* ptr);
+
 #endif /* __LUNAIX_VALLOC_H */