vm_page.h (50477) | vm_page.h (51337) |
---|---|
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 --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * | 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 --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * |
64 * $FreeBSD: head/sys/vm/vm_page.h 50477 1999-08-28 01:08:13Z peter $ | 64 * $FreeBSD: head/sys/vm/vm_page.h 51337 1999-09-17 04:56:40Z dillon $ |
65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 58 unchanged lines hidden (view full) --- 131 u_char dirty; /* map of dirty DEV_BSIZE chunks */ 132#elif PAGE_SIZE == 8192 133 u_short valid; /* map of valid DEV_BSIZE chunks */ 134 u_short dirty; /* map of dirty DEV_BSIZE chunks */ 135#endif 136}; 137 138/* | 65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 58 unchanged lines hidden (view full) --- 131 u_char dirty; /* map of dirty DEV_BSIZE chunks */ 132#elif PAGE_SIZE == 8192 133 u_short valid; /* map of valid DEV_BSIZE chunks */ 134 u_short dirty; /* map of dirty DEV_BSIZE chunks */ 135#endif 136}; 137 138/* |
139 * note SWAPBLK_NONE is a flag, basically the high bit. | 139 * note: currently use SWAPBLK_NONE as an absolute value rather then 140 * a flag bit. |
140 */ 141 142#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */ 143#define SWAPBLK_NONE ((daddr_t)((u_daddr_t)SWAPBLK_MASK + 1))/* flag */ 144 145#if !defined(KLD_MODULE) 146 147/* --- 238 unchanged lines hidden (view full) --- 386#define VM_ALLOC_SYSTEM 2 387#define VM_ALLOC_ZERO 3 388#define VM_ALLOC_RETRY 0x80 389 390void vm_page_activate __P((vm_page_t)); 391vm_page_t vm_page_alloc __P((vm_object_t, vm_pindex_t, int)); 392vm_page_t vm_page_grab __P((vm_object_t, vm_pindex_t, int)); 393void vm_page_cache __P((register vm_page_t)); | 141 */ 142 143#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */ 144#define SWAPBLK_NONE ((daddr_t)((u_daddr_t)SWAPBLK_MASK + 1))/* flag */ 145 146#if !defined(KLD_MODULE) 147 148/* --- 238 unchanged lines hidden (view full) --- 387#define VM_ALLOC_SYSTEM 2 388#define VM_ALLOC_ZERO 3 389#define VM_ALLOC_RETRY 0x80 390 391void vm_page_activate __P((vm_page_t)); 392vm_page_t vm_page_alloc __P((vm_object_t, vm_pindex_t, int)); 393vm_page_t vm_page_grab __P((vm_object_t, vm_pindex_t, int)); 394void vm_page_cache __P((register vm_page_t)); |
395void vm_page_dontneed __P((register vm_page_t)); |
|
394static __inline void vm_page_copy __P((vm_page_t, vm_page_t)); 395static __inline void vm_page_free __P((vm_page_t)); 396static __inline void vm_page_free_zero __P((vm_page_t)); 397void vm_page_deactivate __P((vm_page_t)); 398void vm_page_insert __P((vm_page_t, vm_object_t, vm_pindex_t)); 399vm_page_t vm_page_lookup __P((vm_object_t, vm_pindex_t)); 400void vm_page_remove __P((vm_page_t)); 401void vm_page_rename __P((vm_page_t, vm_object_t, vm_pindex_t)); --- 214 unchanged lines hidden --- | 396static __inline void vm_page_copy __P((vm_page_t, vm_page_t)); 397static __inline void vm_page_free __P((vm_page_t)); 398static __inline void vm_page_free_zero __P((vm_page_t)); 399void vm_page_deactivate __P((vm_page_t)); 400void vm_page_insert __P((vm_page_t, vm_object_t, vm_pindex_t)); 401vm_page_t vm_page_lookup __P((vm_object_t, vm_pindex_t)); 402void vm_page_remove __P((vm_page_t)); 403void vm_page_rename __P((vm_page_t, vm_object_t, vm_pindex_t)); --- 214 unchanged lines hidden --- |