summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_pager.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-06 14:03:06 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-06 14:03:06 +0000
commit0e51140bc4d8ce922edd65b75fccdcb28c0d7872 (patch)
tree77db98dcab4c639849cf05e5384fc5eab782dd2f /sys/uvm/uvm_pager.h
parent1b4909669b8582212bdca9564ac3951ad63c336b (diff)
Add a new type voff_t (right now it's typedefed as off_t) used for offsets
into objects. Gives the possibilty to mmap beyond the size of vaddr_t. From NetBSD.
Diffstat (limited to 'sys/uvm/uvm_pager.h')
-rw-r--r--sys/uvm/uvm_pager.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/uvm/uvm_pager.h b/sys/uvm/uvm_pager.h
index dae766f6883..d63c94df155 100644
--- a/sys/uvm/uvm_pager.h
+++ b/sys/uvm/uvm_pager.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_pager.h,v 1.8 2001/07/26 19:37:13 art Exp $ */
-/* $NetBSD: uvm_pager.h,v 1.11 2000/01/11 06:57:50 chs Exp $ */
+/* $OpenBSD: uvm_pager.h,v 1.9 2001/08/06 14:03:05 art Exp $ */
+/* $NetBSD: uvm_pager.h,v 1.12 2000/03/26 20:54:47 kleink Exp $ */
/*
*
@@ -72,22 +72,22 @@ struct uvm_pagerops {
vm_page_t *, int, int, vm_fault_t,
vm_prot_t, int));
boolean_t (*pgo_flush) /* flush pages out of obj */
- __P((struct uvm_object *, vaddr_t, vaddr_t, int));
+ __P((struct uvm_object *, voff_t, voff_t, int));
int (*pgo_get) /* get/read page */
- __P((struct uvm_object *, vaddr_t,
+ __P((struct uvm_object *, voff_t,
vm_page_t *, int *, int, vm_prot_t, int, int));
int (*pgo_asyncget) /* start async get */
- __P((struct uvm_object *, vaddr_t, int));
+ __P((struct uvm_object *, voff_t, int));
int (*pgo_put) /* put/write page */
__P((struct uvm_object *, vm_page_t *,
int, boolean_t));
void (*pgo_cluster) /* return range of cluster */
- __P((struct uvm_object *, vaddr_t, vaddr_t *,
- vaddr_t *));
+ __P((struct uvm_object *, voff_t, voff_t *,
+ voff_t *));
struct vm_page ** (*pgo_mk_pcluster) /* make "put" cluster */
__P((struct uvm_object *, struct vm_page **,
- int *, struct vm_page *, int, vaddr_t,
- vaddr_t));
+ int *, struct vm_page *, int, voff_t,
+ voff_t));
void (*pgo_shareprot) /* share protect */
__P((vm_map_entry_t, vm_prot_t));
void (*pgo_aiodone) /* async iodone */
@@ -138,7 +138,7 @@ void uvm_pager_dropcluster __P((struct uvm_object *,
void uvm_pager_init __P((void));
int uvm_pager_put __P((struct uvm_object *, struct vm_page *,
struct vm_page ***, int *, int,
- vaddr_t, vaddr_t));
+ voff_t, voff_t));
PAGER_INLINE struct vm_page *uvm_pageratop __P((vaddr_t));
@@ -147,7 +147,7 @@ vaddr_t uvm_pagermapin __P((struct vm_page **, int,
void uvm_pagermapout __P((vaddr_t, int));
struct vm_page **uvm_mk_pcluster __P((struct uvm_object *, struct vm_page **,
int *, struct vm_page *, int,
- vaddr_t, vaddr_t));
+ voff_t, voff_t));
void uvm_shareprot __P((vm_map_entry_t, vm_prot_t));
#endif /* _KERNEL */