Subject: Re: LKM's and NetBSD kernels.
To: None <kenh@cmf.nrl.navy.mil, darrenr@vitruvius.arbld.unimelb.edu.au,>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 06/10/1996 19:36:45
>>>>> "Ken" == Ken Hornstein <kenh@cmf.nrl.navy.mil> writes:


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

It would be nicer to have several global variables, with major, minor,
and NetBSD values in them.  LKMs with discerning taste then could check
them more easily.

(This suggests that NetBSD should be updated more frequently between
releases, when substantial kernel changes are made, which would be
good.)

==John