vm_pageout.h (1817) | vm_pageout.h (2112) |
---|---|
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 * $Id$ | 64 * $Id: vm_pageout.h,v 1.3 1994/08/02 07:55:34 davidg Exp $ |
65 */ 66 67/* 68 * Header file for pageout daemon. 69 */ 70 71/* 72 * Exported data structures. --- 13 unchanged lines hidden (view full) --- 86 87/* 88 * Signal pageout-daemon and wait for it. 89 */ 90 91#define VM_WAIT vm_wait() 92 93inline static void vm_wait() { | 65 */ 66 67/* 68 * Header file for pageout daemon. 69 */ 70 71/* 72 * Exported data structures. --- 13 unchanged lines hidden (view full) --- 86 87/* 88 * Signal pageout-daemon and wait for it. 89 */ 90 91#define VM_WAIT vm_wait() 92 93inline static void vm_wait() { |
94 extern struct proc *curproc, *pageproc; | |
95 int s; 96 s = splhigh(); 97 if (curproc == pageproc) { 98 vm_pageout_pages_needed = 1; 99 tsleep((caddr_t) &vm_pageout_pages_needed, PSWP, "vmwait", 0); 100 vm_pageout_pages_needed = 0; 101 } else { 102 wakeup((caddr_t) &vm_pages_needed); 103 tsleep((caddr_t) &cnt.v_free_count, PVM, "vmwait", 0); 104 } 105 splx(s); 106} 107 108 109#ifdef KERNEL | 94 int s; 95 s = splhigh(); 96 if (curproc == pageproc) { 97 vm_pageout_pages_needed = 1; 98 tsleep((caddr_t) &vm_pageout_pages_needed, PSWP, "vmwait", 0); 99 vm_pageout_pages_needed = 0; 100 } else { 101 wakeup((caddr_t) &vm_pages_needed); 102 tsleep((caddr_t) &cnt.v_free_count, PVM, "vmwait", 0); 103 } 104 splx(s); 105} 106 107 108#ifdef KERNEL |
110void vm_pageout __P((void)); | |
111int vm_pageout_scan __P((void)); 112void vm_pageout_page __P((vm_page_t, vm_object_t)); 113void vm_pageout_cluster __P((vm_page_t, vm_object_t)); 114#endif | 109int vm_pageout_scan __P((void)); 110void vm_pageout_page __P((vm_page_t, vm_object_t)); 111void vm_pageout_cluster __P((vm_page_t, vm_object_t)); 112#endif |