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 118771 2003-08-11 07:14:08Z bms $"); |
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> --- 132 unchanged lines hidden (view full) --- 211 vm_page_flag_clear(mem, PG_ZERO); 212 vm_page_wakeup(mem); 213 vm_page_unlock_queues(); 214 } 215 216 /* 217 * And finally, mark the data as non-pageable. 218 */ |
219 (void) vm_map_wire(map, addr, addr + size, 220 VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES); |
221 222 return (addr); 223} 224 225/* 226 * kmem_free: 227 * 228 * Release a region of kernel virtual memory allocated --- 309 unchanged lines hidden --- |