Kernel modules have been totally re-worked. From the 3.0-RELEASE
release notes (http://www.freebsd.org/releases/3.0R/notes.html):
The kernel is also still in a.out format at this time so that older
LKMs and library interfaces can continue to work, but a full
transition to ELF will occur at some point after 3.0-RELEASE. Those
wishing to generate dynamic kernel components should therefore use the
newer KLD mechanism rather than the older LKM format - the LKM format
is not long for this world and will soon be unsupported!
Using the KLD mechanism is very similar to the old LKM way. All of the
commands are the same except replace "lkm" with "kld" (kldload, kldstat,
kldunload). Modules can be found in the /modules directory (instead of
/lkm) and have a '.ko' extension (instead of '.o').
Be sure to read the 3.1 release notes too! Find them at:
http://www.freebsd.org/releases/3.1R/notes.html
> Hi all!
> i just upgrade to 3.1-STABLE
> Any ideas why im getting device not configured, when i run modstat?
> Thank you.
> Guadalajara:</root>% ll /dev/lkm
> 8629 crw-r--r-- 1 root wheel - 32, 0 Mar 9 14:43 /dev/lkm
> Guadalajara:</root>% modstat
> modstat: /dev/lkm: Device not configured
> Guadalajara:</root>%
--
Brian O'Shea
(408) 447-3747