summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-21 11:34:57 +0000
committeralfred <alfred@FreeBSD.org>2003-01-21 11:34:57 +0000
commitfcd9f1b339c0155d4d48602cd2114845cf1d8349 (patch)
treea3f3aba2edfeff20024f14e4ed98099d7bd3bb00 /sys/vm
parent9b09eee70694c0969506af2974148c9e961d51f7 (diff)
downloadFreeBSD-src-fcd9f1b339c0155d4d48602cd2114845cf1d8349.zip
FreeBSD-src-fcd9f1b339c0155d4d48602cd2114845cf1d8349.tar.gz
use 'void *' instead of 'caddr_t' for useracc, kernacc, vslock and vsunlock.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_extern.h8
-rw-r--r--sys/vm/vm_glue.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index c259eb7..5677858 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -59,7 +59,7 @@ int sstk(struct thread *, void *, int *);
int swapon(struct thread *, void *, int *);
#endif /* TYPEDEF_FOR_UAP */
-int kernacc(caddr_t, int, int);
+int kernacc(void *, int, int);
vm_offset_t kmem_alloc(vm_map_t, vm_size_t);
vm_offset_t kmem_alloc_nofault(vm_map_t, vm_size_t);
vm_offset_t kmem_alloc_pageable(vm_map_t, vm_size_t);
@@ -72,7 +72,7 @@ vm_map_t kmem_suballoc(vm_map_t, vm_offset_t *, vm_offset_t *, vm_size_t);
void munmapfd(struct thread *, int);
int swaponvp(struct thread *, struct vnode *, dev_t , u_long);
void swapout_procs(int);
-int useracc(caddr_t, int, int);
+int useracc(void *, int, int);
int vm_fault(vm_map_t, vm_offset_t, vm_prot_t, int);
void vm_fault_copy_entry(vm_map_t, vm_map_t, vm_map_entry_t, vm_map_entry_t);
void vm_fault_unwire(vm_map_t, vm_offset_t, vm_offset_t);
@@ -89,8 +89,8 @@ void vmspace_unshare(struct proc *);
void vmspace_free(struct vmspace *);
void vmspace_exitfree(struct proc *);
void vnode_pager_setsize(struct vnode *, vm_ooffset_t);
-void vslock(caddr_t, u_int);
-void vsunlock(caddr_t, u_int);
+void vslock(void *, u_int);
+void vsunlock(void *, u_int);
void vm_object_print(/* db_expr_t */ long, boolean_t, /* db_expr_t */ long,
char *);
int vm_fault_quick(caddr_t v, int prot);
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 92e1005..7a795b6 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -130,7 +130,7 @@ static void vm_proc_swapout(struct proc *p);
*/
int
kernacc(addr, len, rw)
- caddr_t addr;
+ void *addr;
int len, rw;
{
boolean_t rv;
@@ -157,7 +157,7 @@ kernacc(addr, len, rw)
*/
int
useracc(addr, len, rw)
- caddr_t addr;
+ void *addr;
int len, rw;
{
boolean_t rv;
@@ -182,7 +182,7 @@ useracc(addr, len, rw)
*/
void
vslock(addr, len)
- caddr_t addr;
+ void *addr;
u_int len;
{
@@ -195,7 +195,7 @@ vslock(addr, len)
*/
void
vsunlock(addr, len)
- caddr_t addr;
+ void *addr;
u_int len;
{
OpenPOWER on IntegriCloud