use -d99.100 to avoid dropping into background
[unix-history] / usr / src / sys / vm / vm_extern.h
CommitLineData
a99a52ed 1/*-
ad0f93d2
KB
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
a99a52ed
KB
4 *
5 * %sccs.include.redist.c%
6 *
f87e8ab2 7 * @(#)vm_extern.h 8.5 (Berkeley) %G%
a99a52ed
KB
8 */
9
10struct buf;
11struct loadavg;
12struct proc;
13struct vmspace;
14struct vmtotal;
15struct mount;
53737918 16struct vnode;
a99a52ed
KB
17
18#ifdef KGDB
19void chgkprot __P((caddr_t, int, int));
20#endif
21
ae910926 22#ifdef KERNEL
a99a52ed 23#ifdef TYPEDEF_FOR_UAP
53de6702 24int compat_43_getpagesize __P((struct proc *p, void *, int *));
a99a52ed
KB
25int madvise __P((struct proc *, void *, int *));
26int mincore __P((struct proc *, void *, int *));
27int mprotect __P((struct proc *, void *, int *));
28int msync __P((struct proc *, void *, int *));
29int munmap __P((struct proc *, void *, int *));
30int obreak __P((struct proc *, void *, int *));
31int sbrk __P((struct proc *, void *, int *));
32int smmap __P((struct proc *, void *, int *));
33int sstk __P((struct proc *, void *, int *));
34#endif
35
70b9635a
CD
36void assert_wait __P((void *, boolean_t));
37int grow __P((struct proc *, vm_offset_t));
a99a52ed
KB
38void iprintf __P((const char *, ...));
39int kernacc __P((caddr_t, int, int));
a99a52ed
KB
40vm_offset_t kmem_alloc __P((vm_map_t, vm_size_t));
41vm_offset_t kmem_alloc_pageable __P((vm_map_t, vm_size_t));
42vm_offset_t kmem_alloc_wait __P((vm_map_t, vm_size_t));
43void kmem_free __P((vm_map_t, vm_offset_t, vm_size_t));
44void kmem_free_wakeup __P((vm_map_t, vm_offset_t, vm_size_t));
45void kmem_init __P((vm_offset_t, vm_offset_t));
46vm_offset_t kmem_malloc __P((vm_map_t, vm_size_t, boolean_t));
47vm_map_t kmem_suballoc __P((vm_map_t, vm_offset_t *, vm_offset_t *,
48 vm_size_t, boolean_t));
49void loadav __P((struct loadavg *));
70b9635a 50void munmapfd __P((struct proc *, int));
a99a52ed
KB
51int pager_cache __P((vm_object_t, boolean_t));
52void sched __P((void));
53int svm_allocate __P((struct proc *, void *, int *));
54int svm_deallocate __P((struct proc *, void *, int *));
55int svm_inherit __P((struct proc *, void *, int *));
56int svm_protect __P((struct proc *, void *, int *));
57void swapinit __P((void));
58int swapon __P((struct proc *, void *, int *));
59void swapout __P((struct proc *));
60void swapout_threads __P((void));
61int swfree __P((struct proc *, int));
62void swstrategy __P((struct buf *));
63void thread_block __P((void));
70b9635a
CD
64void thread_sleep __P((void *, simple_lock_t, boolean_t));
65void thread_wakeup __P((void *));
a99a52ed
KB
66int useracc __P((caddr_t, int, int));
67int vm_allocate __P((vm_map_t,
68 vm_offset_t *, vm_size_t, boolean_t));
69int vm_allocate_with_pager __P((vm_map_t, vm_offset_t *,
70 vm_size_t, boolean_t, vm_pager_t, vm_offset_t, boolean_t));
71int vm_deallocate __P((vm_map_t, vm_offset_t, vm_size_t));
72int vm_fault __P((vm_map_t, vm_offset_t, vm_prot_t, boolean_t));
73void vm_fault_copy_entry __P((vm_map_t,
74 vm_map_t, vm_map_entry_t, vm_map_entry_t));
75void vm_fault_unwire __P((vm_map_t, vm_offset_t, vm_offset_t));
06862e54 76int vm_fault_wire __P((vm_map_t, vm_offset_t, vm_offset_t));
a99a52ed
KB
77int vm_fork __P((struct proc *, struct proc *, int));
78int vm_inherit __P((vm_map_t,
79 vm_offset_t, vm_size_t, vm_inherit_t));
80void vm_init_limits __P((struct proc *));
81void vm_mem_init __P((void));
06862e54
MH
82int vm_mmap __P((vm_map_t, vm_offset_t *, vm_size_t,
83 vm_prot_t, vm_prot_t, int, caddr_t, vm_offset_t));
a99a52ed
KB
84int vm_protect __P((vm_map_t,
85 vm_offset_t, vm_size_t, boolean_t, vm_prot_t));
a99a52ed 86void vm_set_page_size __P((void));
f87e8ab2
KM
87int vm_sysctl __P((int *, u_int, void *, size_t *, void *,
88 size_t, struct proc *));
a99a52ed
KB
89void vmmeter __P((void));
90struct vmspace *vmspace_alloc __P((vm_offset_t, vm_offset_t, int));
91struct vmspace *vmspace_fork __P((struct vmspace *));
92void vmspace_free __P((struct vmspace *));
93void vmtotal __P((struct vmtotal *));
94void vnode_pager_setsize __P((struct vnode *, u_long));
95void vnode_pager_umount __P((struct mount *));
96boolean_t vnode_pager_uncache __P((struct vnode *));
97void vslock __P((caddr_t, u_int));
98void vsunlock __P((caddr_t, u_int, int));
ae910926 99#endif