[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nn@nndl.org: linux kernel headers]
Hello!
I played with macroses from version.h (UTS_RELEASE, LINUX_VERSION_CODE
and KERNEL_VERSION()) and I didn't found UTS_RELEASE in
KERNELSOURCE/include/linux/version.h. But with google's help I've found
that UTS_RELEASE is now in the utsrelease.h. But it's not a question.
My current kernel version is 2.6.22.5 and my sacrifical distro is
Slackware 11. When I open the /usr/include/linux/version.h file,
I see the following:
#define UTS_RELEASE "2.4.33.3"
#define LINUX_VERSION_CODE 132129
/* ... */
But in KERNELSOURCE/include/linux/version.h i see:
#define LINUX_VERSION_CODE 132630
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
And I really can't find include/linux/version.h file while browsing kernel
code in http://lxr.linux.no/source/. And I come to the conclusion, that
this file automatically generates while kernel build.
So, because my attempt to compile module with UTS_RELEASE failed, I
determine that kernel include directory is KERNELSOURCE/include. But my
question is: what difference between KERNELSOURCE/include/linux
directory and /usr/include/linux directory?
Thanx in advance.
--
Nikolay N. Ivanov
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ