[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining kernel version (2.2 or 2.4) from within module?



On Fri, 27 Apr 2001, Timur Tabi wrote:

> I have a module which compiles for both 2.2 and 2.4, using a couple #ifdef's
> for the differences.  I want to be able to create a binary driver that loads on
> both 2.2 or 2.4, detecting at run-time which version it is.  Two questions:
> 
> 1. Can I use "insmod -f" to load a driver compiled for 2.2 under 2.4?

no

> 2. Is there a way to check the kernel version number from within a module?

not at runtime

> I don't want to discuss it.  Please just answer my question without criticism.

done

john

-- 
"That government is best which governs least."
	- Henry David Thoreau 

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/