writing driver code supporting multiple linux kernel versions

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

 



Hi,

 

Is there any macro definitions from which I can decide what is the presently running kernel version in my system….. so that  driver code will behave accordingly…

Actually I had got two kernel versions (2.6.9 and 2.6.13) and the driver code uses APIs which differ in these two……… I want to have a single driver program which according to the booted kernel version will decide which function definitions to use……………

 

Is it possible???

 

Thanx in advance

 

Kaustav Majumdar


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux