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

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



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

Hi,

> Kimden: Timur Tabi [mailto:ttabi@interactivesi.com]
> Tarih: Friday, April 27, 2001 7:45 PM
> Kime: kernelnewbies@nl.linux.org
> Konu: Determining kernel version (2.2 or 2.4) from within module?
>
>
> 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?
>

AFAIK, no but If so, i want to know as well.

Best regards,
Ilker G.


Bu e-postada bulunan tüm fikir ve görüşler ve ekindeki dosyalar sadece adres sahib(ler)ine ait olup, Sümerbank A.Ş hiç bir şekilde sorumlu tutulamaz.

The information contained in this E-Mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and do not reflect those of Sumerbank A.S.