Hi, I had tried the UTS_RELEASE but there were error that too many decimal points....... on considering the kernel version as string also I was getting unsupported token error......... I had checked with LINUX_VERSION_CODE and KERNEL_VERSION macros......... it is working perfectly.... thanx for the help.... Kaustav > Hi, > > Actually I want to write a single code using some macro to identify the > kernel version and using preprocessor directives during preprocessing > time which code snippet will be there, that I want to decide.... > > Like > #if UTS_RELEASE == 2.6.9 > some code > #elif UTS_RELEASE == 2.6.13 > some code > #endif > > can I do this Have you tried it? -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/