diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1995-11-14 07:35:57 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1995-11-14 07:35:57 +0000 |
| commit | b3e24f9ce91bb200d621c57bfa92eac473a435f9 (patch) | |
| tree | 9c94bad3e616d0070b577e174ae969aefd06ef32 /sys/modules/linux/linux.c | |
| parent | a2c9d3c2906b57db1ee27ef76d5fdf366d043196 (diff) | |
Notes
Diffstat (limited to 'sys/modules/linux/linux.c')
| -rw-r--r-- | sys/modules/linux/linux.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/modules/linux/linux.c b/sys/modules/linux/linux.c index 852251a8764e..67faa18d6108 100644 --- a/sys/modules/linux/linux.c +++ b/sys/modules/linux/linux.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux.c,v 1.2 1995/10/28 12:35:07 peter Exp $ + * $Id: linux.c,v 1.3 1995/11/13 07:18:38 bde Exp $ */ #include <sys/param.h> @@ -34,24 +34,26 @@ #include <sys/conf.h> #include <sys/sysent.h> #include <sys/lkm.h> -#include <sys/errno.h> extern const struct execsw linux_execsw; -MOD_EXEC("linux_emulator", -1, (struct execsw*)&linux_execsw) +MOD_EXEC(linux, -1, (struct execsw*)&linux_execsw); +static int linux_load(struct lkm_table *lkmtp, int cmd) { uprintf("Linux emulator installed\n"); return 0; } +static int linux_unload(struct lkm_table *lkmtp, int cmd) { uprintf("Linux emulator removed\n"); return 0; } +int linux_mod(struct lkm_table *lkmtp, int cmd, int ver) { DISPATCH(lkmtp, cmd, ver, linux_load, linux_unload, lkm_nullcmd); |
