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
--- 13 unchanged lines hidden (view full) ---
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)vm_extern.h 8.2 (Berkeley) 1/12/94
30 * $FreeBSD: head/sys/vm/vm_extern.h 226891 2011-10-28 22:36:15Z alc $
31 */
32
33#ifndef _VM_EXTERN_H_
34#define _VM_EXTERN_H_
35
36struct proc;
37struct vmspace;
38struct vnode;
39
40#ifdef _KERNEL
41
42int kernacc(void *, int, int);
43vm_offset_t kmem_alloc(vm_map_t, vm_size_t);
44vm_offset_t kmem_alloc_attr(vm_map_t map, vm_size_t size, int flags,
45 vm_paddr_t low, vm_paddr_t high, vm_memattr_t memattr);
46vm_offset_t kmem_alloc_contig(vm_map_t map, vm_size_t size, int flags,
47 vm_paddr_t low, vm_paddr_t high, u_long alignment, u_long boundary,
48 vm_memattr_t memattr);
49vm_offset_t kmem_alloc_nofault(vm_map_t, vm_size_t);
50vm_offset_t kmem_alloc_nofault_space(vm_map_t, vm_size_t, int);
51vm_offset_t kmem_alloc_wait(vm_map_t, vm_size_t);
52void kmem_free(vm_map_t, vm_offset_t, vm_size_t);
53void kmem_free_wakeup(vm_map_t, vm_offset_t, vm_size_t);
54void kmem_init(vm_offset_t, vm_offset_t);
55vm_offset_t kmem_malloc(vm_map_t map, vm_size_t size, int flags);
56int kmem_back(vm_map_t, vm_offset_t, vm_size_t, int);
--- 38 unchanged lines hidden ---
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
--- 13 unchanged lines hidden (view full) ---
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)vm_extern.h 8.2 (Berkeley) 1/12/94
30 * $FreeBSD: head/sys/vm/vm_extern.h 226891 2011-10-28 22:36:15Z alc $
31 */
32
33#ifndef _VM_EXTERN_H_
34#define _VM_EXTERN_H_
35
36struct proc;
37struct vmspace;
38struct vnode;
39
40#ifdef _KERNEL
41
42int kernacc(void *, int, int);
43vm_offset_t kmem_alloc(vm_map_t, vm_size_t);
44vm_offset_t kmem_alloc_attr(vm_map_t map, vm_size_t size, int flags,
45 vm_paddr_t low, vm_paddr_t high, vm_memattr_t memattr);
46vm_offset_t kmem_alloc_contig(vm_map_t map, vm_size_t size, int flags,
47 vm_paddr_t low, vm_paddr_t high, u_long alignment, u_long boundary,
48 vm_memattr_t memattr);
49vm_offset_t kmem_alloc_nofault(vm_map_t, vm_size_t);
50vm_offset_t kmem_alloc_nofault_space(vm_map_t, vm_size_t, int);
51vm_offset_t kmem_alloc_wait(vm_map_t, vm_size_t);
52void kmem_free(vm_map_t, vm_offset_t, vm_size_t);
53void kmem_free_wakeup(vm_map_t, vm_offset_t, vm_size_t);
54void kmem_init(vm_offset_t, vm_offset_t);
55vm_offset_t kmem_malloc(vm_map_t map, vm_size_t size, int flags);
56int kmem_back(vm_map_t, vm_offset_t, vm_size_t, int);
--- 38 unchanged lines hidden ---