From b77c2bcd981959d2306d8d7814c51a9435a83e00 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 1 Aug 2003 19:51:43 +0000 Subject: [PATCH] Update the comment at the head of kmem_alloc_nofault() to describe its purpose and use. --- sys/vm/vm_kern.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 93676b29f775..826f5ae21d79 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -119,7 +119,11 @@ kmem_alloc_pageable(map, size) /* * kmem_alloc_nofault: * - * Same as kmem_alloc_pageable, except that it create a nofault entry. + * Allocate a virtual address range with no underlying object and + * no initial mapping to physical memory. Any mapping from this + * range to physical memory must be explicitly created prior to + * its use, typically with pmap_qenter(). Any attempt to create + * a mapping on demand through vm_fault() will result in a panic. */ vm_offset_t kmem_alloc_nofault(map, size)