vm_kern.c (118096) | vm_kern.c (118317) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 53 unchanged lines hidden (view full) --- 62 * rights to redistribute these changes. 63 */ 64 65/* 66 * Kernel memory management. 67 */ 68 69#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 53 unchanged lines hidden (view full) --- 62 * rights to redistribute these changes. 63 */ 64 65/* 66 * Kernel memory management. 67 */ 68 69#include <sys/cdefs.h> |
70__FBSDID("$FreeBSD: head/sys/vm/vm_kern.c 118096 2003-07-27 18:31:32Z alc $"); | 70__FBSDID("$FreeBSD: head/sys/vm/vm_kern.c 118317 2003-08-01 19:51:43Z alc $"); |
71 72#include <sys/param.h> 73#include <sys/systm.h> 74#include <sys/kernel.h> /* for ticks and hz */ 75#include <sys/lock.h> 76#include <sys/mutex.h> 77#include <sys/proc.h> 78#include <sys/malloc.h> --- 35 unchanged lines hidden (view full) --- 114 return (0); 115 } 116 return (addr); 117} 118 119/* 120 * kmem_alloc_nofault: 121 * | 71 72#include <sys/param.h> 73#include <sys/systm.h> 74#include <sys/kernel.h> /* for ticks and hz */ 75#include <sys/lock.h> 76#include <sys/mutex.h> 77#include <sys/proc.h> 78#include <sys/malloc.h> --- 35 unchanged lines hidden (view full) --- 114 return (0); 115 } 116 return (addr); 117} 118 119/* 120 * kmem_alloc_nofault: 121 * |
122 * Same as kmem_alloc_pageable, except that it create a nofault entry. | 122 * Allocate a virtual address range with no underlying object and 123 * no initial mapping to physical memory. Any mapping from this 124 * range to physical memory must be explicitly created prior to 125 * its use, typically with pmap_qenter(). Any attempt to create 126 * a mapping on demand through vm_fault() will result in a panic. |
123 */ 124vm_offset_t 125kmem_alloc_nofault(map, size) 126 vm_map_t map; 127 vm_size_t size; 128{ 129 vm_offset_t addr; 130 int result; --- 401 unchanged lines hidden --- | 127 */ 128vm_offset_t 129kmem_alloc_nofault(map, size) 130 vm_map_t map; 131 vm_size_t size; 132{ 133 vm_offset_t addr; 134 int result; --- 401 unchanged lines hidden --- |