Date: Fri, 3 Dec 1999 09:22:34 -0800 (PST) From: jin@george.lbl.gov To: hackers@freebsd.org Subject: question on lkm / kld in 3.3-RELEASE or later Message-ID: <199912031722.JAA20387@george.lbl.gov>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912031722.JAA20387>