1 |
/* Pager creation |
/* Pager creation |
2 |
Copyright (C) 1994, 1995, 1996 Free Software Foundation |
Copyright (C) 1994, 1995, 1996, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
22 |
pager_create (struct user_pager_info *upi, |
pager_create (struct user_pager_info *upi, |
23 |
struct port_bucket *bucket, |
struct port_bucket *bucket, |
24 |
boolean_t may_cache, |
boolean_t may_cache, |
25 |
memory_object_copy_strategy_t copy_strategy) |
memory_object_copy_strategy_t copy_strategy, |
26 |
|
boolean_t notify_on_evict) |
27 |
{ |
{ |
28 |
struct pager *p; |
struct pager *p; |
29 |
|
|
39 |
p->attribute_requests = 0; |
p->attribute_requests = 0; |
40 |
p->may_cache = may_cache; |
p->may_cache = may_cache; |
41 |
p->copy_strategy = copy_strategy; |
p->copy_strategy = copy_strategy; |
42 |
|
p->notify_on_evict = notify_on_evict; |
43 |
p->memobjcntl = MACH_PORT_NULL; |
p->memobjcntl = MACH_PORT_NULL; |
44 |
p->memobjname = MACH_PORT_NULL; |
p->memobjname = MACH_PORT_NULL; |
45 |
p->seqno = -1; |
p->seqno = -1; |