vm_page.h (98823) | vm_page.h (98849) |
---|---|
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 98823 2002-06-25 22:01:12Z jeff $ | 64 * $FreeBSD: head/sys/vm/vm_page.h 98849 2002-06-26 03:37:47Z ken $ |
65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 55 unchanged lines hidden (view full) --- 128 /* so, on normal X86 kernels, they must be at least 8 bits wide */ 129#if PAGE_SIZE == 4096 130 u_char valid; /* map of valid DEV_BSIZE chunks */ 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 | 65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 55 unchanged lines hidden (view full) --- 128 /* so, on normal X86 kernels, they must be at least 8 bits wide */ 129#if PAGE_SIZE == 4096 130 u_char valid; /* map of valid DEV_BSIZE chunks */ 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 u_int cow; /* page cow mapping count */ |
|
136}; 137 138/* 139 * note: currently use SWAPBLK_NONE as an absolute value rather then 140 * a flag bit. 141 */ 142 143#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */ --- 214 unchanged lines hidden (view full) --- 358void vm_page_clear_dirty (vm_page_t, int, int); 359void vm_page_set_invalid (vm_page_t, int, int); 360int vm_page_is_valid (vm_page_t, int, int); 361void vm_page_test_dirty (vm_page_t); 362int vm_page_bits (int, int); 363void vm_page_zero_invalid(vm_page_t m, boolean_t setvalid); 364void vm_page_free_toq(vm_page_t m); 365void vm_page_zero_idle_wakeup(void); | 137}; 138 139/* 140 * note: currently use SWAPBLK_NONE as an absolute value rather then 141 * a flag bit. 142 */ 143 144#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */ --- 214 unchanged lines hidden (view full) --- 359void vm_page_clear_dirty (vm_page_t, int, int); 360void vm_page_set_invalid (vm_page_t, int, int); 361int vm_page_is_valid (vm_page_t, int, int); 362void vm_page_test_dirty (vm_page_t); 363int vm_page_bits (int, int); 364void vm_page_zero_invalid(vm_page_t m, boolean_t setvalid); 365void vm_page_free_toq(vm_page_t m); 366void vm_page_zero_idle_wakeup(void); |
367void vm_page_cowfault (vm_page_t); 368void vm_page_cowsetup (vm_page_t); 369void vm_page_cowclear (vm_page_t); 370 |
|
366#endif /* _KERNEL */ 367#endif /* !_VM_PAGE_ */ | 371#endif /* _KERNEL */ 372#endif /* !_VM_PAGE_ */ |