diff options
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r-- | sys/vm/vm_pager.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 6305c7049bf..dbf95c3e984 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_pager.c,v 1.3 1996/04/21 22:33:16 deraadt Exp $ */ +/* $OpenBSD: vm_pager.c,v 1.4 1996/08/02 00:06:05 niklas Exp $ */ /* $NetBSD: vm_pager.c,v 1.21 1996/03/16 23:15:25 christos Exp $ */ /* @@ -173,11 +173,39 @@ vm_pager_deallocate(pager) { if (pager == NULL) panic("vm_pager_deallocate: null pager"); - (*pager->pg_ops->pgo_dealloc)(pager); } int +vm_pager_remove(pager, from, to) + vm_pager_t pager; + vm_offset_t from, to; +{ + if (pager == NULL) + panic("vm_pager_remove: null pager"); + return (*pager->pg_ops->pgo_remove)(pager, from, to); +} + +vm_offset_t +vm_pager_next(pager, offset) + vm_pager_t pager; + vm_offset_t offset; +{ + if (pager == NULL) + panic("vm_pager_next: null pager"); + return (*pager->pg_ops->pgo_next)(pager, offset); +} + +int +vm_pager_count(pager) + vm_pager_t pager; +{ + if (pager == NULL) + panic("vm_pager_count: null pager"); + return (*pager->pg_ops->pgo_count)(pager); +} + +int vm_pager_get_pages(pager, mlist, npages, sync) vm_pager_t pager; vm_page_t *mlist; |