1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox host drivers - Ring-0 support drivers - Linux host:
|
---|
4 | * Linux host kernel module interfaces
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | *
|
---|
18 | * The contents of this file may alternatively be used under the terms
|
---|
19 | * of the Common Development and Distribution License Version 1.0
|
---|
20 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
21 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
22 | * CDDL are applicable instead of those of the GPL.
|
---|
23 | *
|
---|
24 | * You may elect to license modified versions of this file under the
|
---|
25 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
26 | *
|
---|
27 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
28 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
29 | * additional information or have any questions.
|
---|
30 | */
|
---|
31 |
|
---|
32 | #include "SUPDRV.h" /* for KBUILD_STR */
|
---|
33 | #include "the-linux-kernel.h"
|
---|
34 | #include <linux/vermagic.h>
|
---|
35 |
|
---|
36 | MODULE_INFO(vermagic, VERMAGIC_STRING);
|
---|
37 |
|
---|
38 | #undef unix
|
---|
39 | struct module __this_module
|
---|
40 | __attribute__((section(".gnu.linkonce.this_module"))) = {
|
---|
41 | .name = __stringify(KBUILD_MODNAME),
|
---|
42 | .init = init_module,
|
---|
43 | #ifdef CONFIG_MODULE_UNLOAD
|
---|
44 | .exit = cleanup_module,
|
---|
45 | #endif
|
---|
46 | };
|
---|
47 |
|
---|
48 | static const struct modversion_info ____versions[]
|
---|
49 | __attribute_used__
|
---|
50 | __attribute__((section("__versions"))) = {
|
---|
51 | { 0, "cleanup_module" },
|
---|
52 | { 0, "init_module" },
|
---|
53 | { 0, "struct_module" },
|
---|
54 | { 0, "devfs_remove" },
|
---|
55 | { 0, "strpbrk" },
|
---|
56 | { 0, "__kmalloc" },
|
---|
57 | { 0, "mem_map" },
|
---|
58 | { 0, "vmalloc" },
|
---|
59 | { 0, "malloc_sizes" },
|
---|
60 | { 0, "vfree" },
|
---|
61 | { 0, "change_page_attr" },
|
---|
62 | { 0, "__might_sleep" },
|
---|
63 | { 0, "remap_page_range" },
|
---|
64 | { 0, "__alloc_pages" },
|
---|
65 | { 0, "printk" },
|
---|
66 | { 0, "__PAGE_KERNEL" },
|
---|
67 | { 0, "rwsem_wake" },
|
---|
68 | { 0, "copy_to_user" },
|
---|
69 | { 0, "devfs_mk_cdev" },
|
---|
70 | { 0, "preempt_schedule" },
|
---|
71 | { 0, "contig_page_data" },
|
---|
72 | { 0, "do_mmap_pgoff" },
|
---|
73 | { 0, "find_vma" },
|
---|
74 | { 0, "kmem_cache_alloc" },
|
---|
75 | { 0, "__free_pages" },
|
---|
76 | { 0, "do_munmap" },
|
---|
77 | { 0, "get_user_pages" },
|
---|
78 | { 0, "register_chrdev" },
|
---|
79 | { 0, "vsnprintf" },
|
---|
80 | { 0, "kfree" },
|
---|
81 | { 0, "memcpy" },
|
---|
82 | { 0, "unregister_chrdev" },
|
---|
83 | { 0, "put_page" },
|
---|
84 | { 0, "__up_wakeup" },
|
---|
85 | { 0, "__down_failed" },
|
---|
86 | { 0, "copy_from_user" },
|
---|
87 | { 0, "rwsem_down_read_failed" },
|
---|
88 | };
|
---|
89 |
|
---|
90 | static const char __module_depends[]
|
---|
91 | __attribute_used__
|
---|
92 | __attribute__((section(".modinfo"))) =
|
---|
93 | "depends=";
|
---|
94 |
|
---|