From owner-freebsd-hackers Fri Dec 3 9:23: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from postal1.lbl.gov (postal1.lbl.gov [128.3.7.82]) by hub.freebsd.org (Postfix) with ESMTP id E4EB315025 for ; Fri, 3 Dec 1999 09:22:54 -0800 (PST) (envelope-from jin@george.lbl.gov) Received: from SpamWall.lbl.gov (localhost [127.0.0.1]) by postal1.lbl.gov (8.9.3/8.9.3) with ESMTP id JAA02868 for ; Fri, 3 Dec 1999 09:22:36 -0800 (PST) From: jin@george.lbl.gov Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by SpamWall.lbl.gov (8.9.3/8.9.3) with ESMTP id JAA02862 for ; Fri, 3 Dec 1999 09:22:36 -0800 (PST) Received: (from jin@localhost) by george.lbl.gov (8.9.1b+Sun/8.9.1) id JAA20387 for hackers@freebsd.org; Fri, 3 Dec 1999 09:22:34 -0800 (PST) Date: Fri, 3 Dec 1999 09:22:34 -0800 (PST) Message-Id: <199912031722.JAA20387@george.lbl.gov> To: hackers@freebsd.org Subject: question on lkm / kld in 3.3-RELEASE or later Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems that lkm is no longer working after 3.3, it complains regardless the mod is compiled in aout or elf (setenv OBJFORMAT before doing compiling): # modload -ezatm_mod /lkm/znatmdrv.o ld: /kernel: malformed input file (not rel or archive) modload: /usr/bin/ld: return code 1 So, it looks like that kld is the way to go. However, there is no miscellaneous module under kld (/usr/share/examples/kld/{cdev, syscall}). Below is some comment in kld/cdev/module/cdevmod.c, It says that cdev module is "a miscellaneous module". Will kld provide a miscellaneous module in the future? or miscellaneous module is merged with cdev module? Thanks for any information, -Jin ... #include "cdev.h" static int cdev_load(module_t, modeventtype_t, void *); /* * This function is called each time the module is loaded or unloaded. * Since we are a miscellaneous module, we have to provide whatever * code is necessary to patch ourselves into the area we are being * loaded to change. * * The stat information is basically common to all modules, so there * is no real issue involved with stat; we will leave it lkm_nullcmd(), * since we don't have to do anything about it. */ static int cdev_load(mod, cmd, arg) module_t mod; modeventtype_t cmd; void * arg; { int err = 0; cdevmod.c: unmodified, readonly: line 79 of 122 [64%] ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message