vm_pager.c (f85f2fa903d5f6e5dd512d730a65f873b080d890) vm_pager.c (e4542174b02a9ad9a5c3e802f97df69a3ee781c1)
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: vm_pager.c,v 1.41 1999/01/21 08:29:12 dillon Exp $
64 * $Id: vm_pager.c,v 1.42 1999/01/21 10:15:24 dillon Exp $
65 */
66
67/*
68 * Paging space routine stubs. Emulates a matchmaker-like interface
69 * for builtin pagers.
70 */
71
72#include <sys/param.h>

--- 18 unchanged lines hidden (view full) ---

91extern struct pagerops vnodepagerops;
92extern struct pagerops devicepagerops;
93
94int cluster_pbuf_freecnt = -1; /* unlimited to begin with */
95
96static int dead_pager_getpages __P((vm_object_t, vm_page_t *, int, int));
97static vm_object_t dead_pager_alloc __P((void *, vm_ooffset_t, vm_prot_t,
98 vm_ooffset_t));
65 */
66
67/*
68 * Paging space routine stubs. Emulates a matchmaker-like interface
69 * for builtin pagers.
70 */
71
72#include <sys/param.h>

--- 18 unchanged lines hidden (view full) ---

91extern struct pagerops vnodepagerops;
92extern struct pagerops devicepagerops;
93
94int cluster_pbuf_freecnt = -1; /* unlimited to begin with */
95
96static int dead_pager_getpages __P((vm_object_t, vm_page_t *, int, int));
97static vm_object_t dead_pager_alloc __P((void *, vm_ooffset_t, vm_prot_t,
98 vm_ooffset_t));
99static int dead_pager_putpages __P((vm_object_t, vm_page_t *, int, int, int *));
99static void dead_pager_putpages __P((vm_object_t, vm_page_t *, int, int, int *));
100static boolean_t dead_pager_haspage __P((vm_object_t, vm_pindex_t, int *, int *));
101static void dead_pager_dealloc __P((vm_object_t));
102
100static boolean_t dead_pager_haspage __P((vm_object_t, vm_pindex_t, int *, int *));
101static void dead_pager_dealloc __P((vm_object_t));
102
103int
103static int
104dead_pager_getpages(obj, ma, count, req)
105 vm_object_t obj;
106 vm_page_t *ma;
107 int count;
108 int req;
109{
110 return VM_PAGER_FAIL;
111}
112
104dead_pager_getpages(obj, ma, count, req)
105 vm_object_t obj;
106 vm_page_t *ma;
107 int count;
108 int req;
109{
110 return VM_PAGER_FAIL;
111}
112
113vm_object_t
113static vm_object_t
114dead_pager_alloc(handle, size, prot, off)
115 void *handle;
116 vm_ooffset_t size;
117 vm_prot_t prot;
118 vm_ooffset_t off;
119{
120 return NULL;
121}
122
114dead_pager_alloc(handle, size, prot, off)
115 void *handle;
116 vm_ooffset_t size;
117 vm_prot_t prot;
118 vm_ooffset_t off;
119{
120 return NULL;
121}
122
123int
123static void
124dead_pager_putpages(object, m, count, flags, rtvals)
125 vm_object_t object;
126 vm_page_t *m;
127 int count;
128 int flags;
129 int *rtvals;
130{
131 int i;
124dead_pager_putpages(object, m, count, flags, rtvals)
125 vm_object_t object;
126 vm_page_t *m;
127 int count;
128 int flags;
129 int *rtvals;
130{
131 int i;
132
132 for (i = 0; i < count; i++) {
133 rtvals[i] = VM_PAGER_AGAIN;
134 }
133 for (i = 0; i < count; i++) {
134 rtvals[i] = VM_PAGER_AGAIN;
135 }
135 return VM_PAGER_AGAIN;
136}
137
136}
137
138int
138static int
139dead_pager_haspage(object, pindex, prev, next)
140 vm_object_t object;
141 vm_pindex_t pindex;
142 int *prev;
143 int *next;
144{
145 if (prev)
146 *prev = 0;
147 if (next)
148 *next = 0;
149 return FALSE;
150}
151
139dead_pager_haspage(object, pindex, prev, next)
140 vm_object_t object;
141 vm_pindex_t pindex;
142 int *prev;
143 int *next;
144{
145 if (prev)
146 *prev = 0;
147 if (next)
148 *next = 0;
149 return FALSE;
150}
151
152void
152static void
153dead_pager_dealloc(object)
154 vm_object_t object;
155{
156 return;
157}
158
159struct pagerops deadpagerops = {
160 NULL,

--- 284 unchanged lines hidden ---
153dead_pager_dealloc(object)
154 vm_object_t object;
155{
156 return;
157}
158
159struct pagerops deadpagerops = {
160 NULL,

--- 284 unchanged lines hidden ---