Subject: CVS commit: src/sys
To: None <>
From: Jaromir Dolecek <>
List: source-changes
Date: 09/06/2003 19:08:55
Module Name:	src
Committed By:	jdolecek
Date:		Sat Sep  6 19:08:55 UTC 2003

Modified Files:
	src/sys/kern: kern_lkm.c
	src/sys/sys: lkm.h

Log Message:
Embed information about kernel version and some of used kernel options
into compiled LKMs. Check this information when LKM is loaded into kernel
and refuse LKMs not matching currently running kernel. Provide LMFORCE
ioctl to skip this check for those feeling adventurous.

as discussed on tech-kern@, thanks to feedback from Bill Studenmund and others

To generate a diff of this commit:
cvs rdiff -r1.67 -r1.68 src/sys/kern/kern_lkm.c
cvs rdiff -r1.29 -r1.30 src/sys/sys/lkm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.