summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/umalloc.h
diff options
context:
space:
mode:
authorMichael Brown2007-01-16 09:36:42 +0100
committerMichael Brown2007-01-16 09:36:42 +0100
commit544fa259287a2b919d8ed05bc201a5133032ef05 (patch)
treeff78f4abbfb22c10f45402f98c11e2d5419f5e70 /src/include/gpxe/umalloc.h
parentCreate and use async_block() macro; it cuts down on the visual overhead (diff)
downloadipxe-544fa259287a2b919d8ed05bc201a5133032ef05.tar.gz
ipxe-544fa259287a2b919d8ed05bc201a5133032ef05.tar.xz
ipxe-544fa259287a2b919d8ed05bc201a5133032ef05.zip
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
reflect the fact that they allocate and deallocate user memory (i.e. things reached through a userptr_t).
Diffstat (limited to 'src/include/gpxe/umalloc.h')
-rw-r--r--src/include/gpxe/umalloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gpxe/umalloc.h b/src/include/gpxe/umalloc.h
new file mode 100644
index 00000000..49ec22b4
--- /dev/null
+++ b/src/include/gpxe/umalloc.h
@@ -0,0 +1,17 @@
+#ifndef _GPXE_UMALLOC_H
+#define _GPXE_UMALLOC_H
+
+/**
+ * @file
+ *
+ * User memory allocation
+ *
+ */
+
+#include <gpxe/uaccess.h>
+
+extern userptr_t umalloc ( size_t size );
+extern userptr_t urealloc ( userptr_t ptr, size_t new_size );
+extern void ufree ( userptr_t ptr );
+
+#endif /* _GPXE_UMALLOC_H */