summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_extern.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_extern.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_extern.h')
-rw-r--r--sys/uvm/uvm_extern.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index 94f7dc3fbcf..3e8d80a38c4 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_extern.h,v 1.16 2001/08/02 11:06:38 art Exp $ */
-/* $NetBSD: uvm_extern.h,v 1.37 2000/02/11 19:22:54 thorpej Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.17 2001/08/06 14:03:04 art Exp $ */
+/* $NetBSD: uvm_extern.h,v 1.38 2000/03/26 20:54:46 kleink Exp $ */
/*
*
@@ -113,7 +113,7 @@
((MAXPROT << 8)|(PROT)|(INH)|((ADVICE) << 12)|(FLAGS))
/* magic offset value */
-#define UVM_UNKNOWN_OFFSET ((vaddr_t) -1)
+#define UVM_UNKNOWN_OFFSET ((voff_t) -1)
/* offset not known(obj) or don't care(!obj) */
/*
@@ -335,7 +335,7 @@ void uvm_km_free_poolpage1 __P((vm_map_t, vaddr_t));
/* uvm_map.c */
int uvm_map __P((vm_map_t, vaddr_t *, vsize_t,
- struct uvm_object *, vaddr_t, uvm_flag_t));
+ struct uvm_object *, voff_t, uvm_flag_t));
int uvm_map_pageable __P((vm_map_t, vaddr_t,
vaddr_t, boolean_t, int));
int uvm_map_pageable_all __P((vm_map_t, int, vsize_t));
@@ -363,18 +363,18 @@ void uvm_total __P((struct vmtotal *));
/* uvm_mmap.c */
int uvm_mmap __P((vm_map_t, vaddr_t *, vsize_t,
vm_prot_t, vm_prot_t, int,
- caddr_t, vaddr_t, vsize_t));
+ caddr_t, voff_t, vsize_t));
/* uvm_page.c */
struct vm_page *uvm_pagealloc_strat __P((struct uvm_object *,
- vaddr_t, struct vm_anon *, int, int, int));
+ voff_t, struct vm_anon *, int, int, int));
#define uvm_pagealloc(obj, off, anon, flags) \
uvm_pagealloc_strat((obj), (off), (anon), (flags), \
UVM_PGA_STRAT_NORMAL, 0)
vaddr_t uvm_pagealloc_contig __P((vaddr_t, vaddr_t,
vaddr_t, vaddr_t));
void uvm_pagerealloc __P((struct vm_page *,
- struct uvm_object *, vaddr_t));
+ struct uvm_object *, voff_t));
/* Actually, uvm_page_physload takes PF#s which need their own type */
void uvm_page_physload __P((paddr_t, paddr_t,
paddr_t, paddr_t, int));
@@ -401,7 +401,7 @@ int uvm_grow __P((struct proc *, vaddr_t));
int uvm_deallocate __P((vm_map_t, vaddr_t, vsize_t));
/* uvm_vnode.c */
-void uvm_vnp_setsize __P((struct vnode *, u_quad_t));
+void uvm_vnp_setsize __P((struct vnode *, voff_t));
void uvm_vnp_sync __P((struct mount *));
void uvm_vnp_terminate __P((struct vnode *));
/* terminate a uvm/uvn object */