1 |
/* Paging interface for storeio devices |
/* Paging interface for storeio devices |
2 |
|
|
3 |
Copyright (C) 1995,96,97,99,2002 Free Software Foundation, Inc. |
Copyright (C) 1995,96,97,99,2002,05 Free Software Foundation, Inc. |
4 |
|
|
5 |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
6 |
|
|
109 |
return 0; |
return 0; |
110 |
} |
} |
111 |
|
|
112 |
|
void |
113 |
|
pager_notify_evict (struct user_pager_info *pager, |
114 |
|
vm_offset_t page) |
115 |
|
{ |
116 |
|
assert (!"unrequested notification on eviction"); |
117 |
|
} |
118 |
|
|
119 |
/* The user must define this function. It should report back (in |
/* The user must define this function. It should report back (in |
120 |
*OFFSET and *SIZE the minimum valid address the pager will accept |
*OFFSET and *SIZE the minimum valid address the pager will accept |
121 |
and the size of the object. */ |
and the size of the object. */ |
239 |
{ |
{ |
240 |
dev->pager = |
dev->pager = |
241 |
pager_create ((struct user_pager_info *)dev, pager_port_bucket, |
pager_create ((struct user_pager_info *)dev, pager_port_bucket, |
242 |
1, MEMORY_OBJECT_COPY_DELAY); |
1, MEMORY_OBJECT_COPY_DELAY, 0); |
243 |
if (dev->pager == NULL) |
if (dev->pager == NULL) |
244 |
{ |
{ |
245 |
mutex_unlock (&dev->pager_lock); |
mutex_unlock (&dev->pager_lock); |