Subject: Re: LKM's and NetBSD kernels.
To: Darren Reed <>
From: Ken Hornstein <>
List: current-users
Date: 06/10/1996 11:48:54
>It has occured to me that whilst the kernel may change, in subtle ways, it
>may change in such a way that an LKM stops working but it will still link
>and load into the new kernel.
>To me, this seems to be a serious problem.
>Any suggestions for people writing LKMs for NetBSD on how to handle this
>situation except for a "don't use NetBSD-current with it" type approach ?

You could always check the version number when the LKM is loaded.  For
example, the AFS LKM does this -- if the NetBSD version in the kernel doesn't
match up with the one in the LKM, it prints a message and refuses to load.