summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-10 22:21:13 +0000
committerpeter <peter@FreeBSD.org>1999-08-10 22:21:13 +0000
commite657118d0bda448b3f9d34a3768770329ebaf847 (patch)
tree164ece1f4794059e1f635f4ae2dd39a695a394b5 /sys/vm
parent51df8113675c8d9a3c3182ce3f1886bace0fb3a1 (diff)
downloadFreeBSD-src-e657118d0bda448b3f9d34a3768770329ebaf847.zip
FreeBSD-src-e657118d0bda448b3f9d34a3768770329ebaf847.tar.gz
Add a contigfree() as a corollary to contigmalloc() as it's not clear
which free routine to use and people are tempted to use free() (which doesn't work)
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index b34c34b..2fd64cf 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
- * $Id: vm_page.c,v 1.135 1999/07/31 04:19:49 alc Exp $
+ * $Id: vm_page.c,v 1.136 1999/07/31 18:30:59 alc Exp $
*/
/*
@@ -1822,6 +1822,15 @@ contigmalloc(size, type, flags, low, high, alignment, boundary)
kernel_map);
}
+void
+contigfree(addr, size, type)
+ void *addr;
+ unsigned long size;
+ struct malloc_type *type;
+{
+ kmem_free(kernel_map, (vm_offset_t)addr, size);
+}
+
vm_offset_t
vm_page_alloc_contig(size, low, high, alignment)
vm_offset_t size;
OpenPOWER on IntegriCloud