vm_extern.h (2801687d568a6efada994a5ed1f3f4824f48f6d3) vm_extern.h (2e32165ce065a92776512e4b7a9e09d86afebd34)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 58 unchanged lines hidden (view full) ---

67 int fault_flags, vm_page_t *m_hold);
68int vm_fault_quick_hold_pages(vm_map_t map, vm_offset_t addr, vm_size_t len,
69 vm_prot_t prot, vm_page_t *ma, int max_count);
70void vm_fault_unwire(vm_map_t, vm_offset_t, vm_offset_t, boolean_t);
71int vm_fault_wire(vm_map_t, vm_offset_t, vm_offset_t, boolean_t);
72int vm_forkproc(struct thread *, struct proc *, struct thread *, struct vmspace *, int);
73void vm_waitproc(struct proc *);
74int vm_mmap(vm_map_t, vm_offset_t *, vm_size_t, vm_prot_t, vm_prot_t, int, objtype_t, void *, vm_ooffset_t);
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 58 unchanged lines hidden (view full) ---

67 int fault_flags, vm_page_t *m_hold);
68int vm_fault_quick_hold_pages(vm_map_t map, vm_offset_t addr, vm_size_t len,
69 vm_prot_t prot, vm_page_t *ma, int max_count);
70void vm_fault_unwire(vm_map_t, vm_offset_t, vm_offset_t, boolean_t);
71int vm_fault_wire(vm_map_t, vm_offset_t, vm_offset_t, boolean_t);
72int vm_forkproc(struct thread *, struct proc *, struct thread *, struct vmspace *, int);
73void vm_waitproc(struct proc *);
74int vm_mmap(vm_map_t, vm_offset_t *, vm_size_t, vm_prot_t, vm_prot_t, int, objtype_t, void *, vm_ooffset_t);
75int vm_mmap_to_errno(int rv);
75void vm_set_page_size(void);
76void vm_sync_icache(vm_map_t, vm_offset_t, vm_size_t);
77struct vmspace *vmspace_alloc(vm_offset_t, vm_offset_t);
78struct vmspace *vmspace_fork(struct vmspace *, vm_ooffset_t *);
79int vmspace_exec(struct proc *, vm_offset_t, vm_offset_t);
80int vmspace_unshare(struct proc *);
81void vmspace_exit(struct thread *);
82struct vmspace *vmspace_acquire_ref(struct proc *);
83void vmspace_free(struct vmspace *);
84void vmspace_exitfree(struct proc *);
85void vnode_pager_setsize(struct vnode *, vm_ooffset_t);
86int vslock(void *, size_t);
87void vsunlock(void *, size_t);
88struct sf_buf *vm_imgact_map_page(vm_object_t object, vm_ooffset_t offset);
89void vm_imgact_unmap_page(struct sf_buf *sf);
90void vm_thread_dispose(struct thread *td);
91int vm_thread_new(struct thread *td, int pages);
92#endif /* _KERNEL */
93#endif /* !_VM_EXTERN_H_ */
76void vm_set_page_size(void);
77void vm_sync_icache(vm_map_t, vm_offset_t, vm_size_t);
78struct vmspace *vmspace_alloc(vm_offset_t, vm_offset_t);
79struct vmspace *vmspace_fork(struct vmspace *, vm_ooffset_t *);
80int vmspace_exec(struct proc *, vm_offset_t, vm_offset_t);
81int vmspace_unshare(struct proc *);
82void vmspace_exit(struct thread *);
83struct vmspace *vmspace_acquire_ref(struct proc *);
84void vmspace_free(struct vmspace *);
85void vmspace_exitfree(struct proc *);
86void vnode_pager_setsize(struct vnode *, vm_ooffset_t);
87int vslock(void *, size_t);
88void vsunlock(void *, size_t);
89struct sf_buf *vm_imgact_map_page(vm_object_t object, vm_ooffset_t offset);
90void vm_imgact_unmap_page(struct sf_buf *sf);
91void vm_thread_dispose(struct thread *td);
92int vm_thread_new(struct thread *td, int pages);
93#endif /* _KERNEL */
94#endif /* !_VM_EXTERN_H_ */