Subject: kern/11306: sample LKM doesn't load
To: None <>
From: John Franklin <>
List: netbsd-bugs
Date: 10/24/2000 10:24:14
>Number:         11306
>Category:       kern
>Synopsis:       sample LKM doesn't load
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 24 10:24:00 PDT 2000
>Originator:     John Franklin
>Release:        NetBSD-current as of 23 Oct 00
System: NetBSD riff 1.5H NetBSD 1.5H (RIFF) #0: Mon Oct 16 16:08:01 EDT 2000 franklin@riff:/usr/src/sys/arch/i386/compile/RIFF i386

attempting to build and modload the sample LKM miscmod fails because it can't find the proper lmkentry routine.

(as root, with a kernel that allows LKMs to be installed after boot)
cd /usr/share/lkm/misc/module
modload combined.o
apply attached patch:

Index: share/lkm/misc/module/miscmod.c
RCS file: /cvsroot/sharesrc/share/lkm/misc/module/miscmod.c,v
retrieving revision 1.5
diff -u -r1.5 miscmod.c
--- miscmod.c	1997/12/01 19:08:31	1.5
+++ miscmod.c	2000/10/23 22:15:20
@@ -174,7 +174,7 @@
  * The entry point should return 0 unless it is refusing load (in which
  * case it should return an errno from errno.h).
-miscmod( lkmtp, cmd, ver)
+combined_lkmentry( lkmtp, cmd, ver)
 struct lkm_table	*lkmtp;	
 int			cmd;
 int			ver;