Date: Mon, 30 Dec 1996 18:12:28 +1030 (CST) From: brawley@communica.com.au (Ivan Brawley) To: freebsd-bugs@freebsd.org Subject: LKMs and character special devices Message-ID: <9612300742.AA05225@communica.com.au>
next in thread | raw e-mail | index | archive | help
After spending quite some time (too much time) on trying to port a package to FreeBSD 2.2, I noticed something. In the file /usr/src/sys/kern/kern_lkm.c where it does some of the initializing of the LKMs, noticed that there is code to add a block special device through a LKM, but not a character special device. Case statement begins at line 688 (or there abouts) in function _lkm_dev(). Theres just a break in the case statment for the case of LM_DT_CHAR. Meaning, for someone to write a LKM that adds a character special device to the system, must add the entery into the cdevsw list themselves. The next querk I found was in /usr/include/sys/lkm.h. The MOD_DEV macro seems to be wrong in defining _module (rather, it tryes to define name ## _module, then when you try to use the DISPATCH macro, the compiler errs with "_module symbol not found". The problem I have noticed is in versions 960501-SNAP, 960801-SNAP and the October snap, and the 2.2 BETA release. Thanks. Ivan Brawley.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9612300742.AA05225>