From mboxrd@z Thu Jan 1 00:00:00 1970 From: kristof@sigsegv.be (Kristof Provost) Date: Mon, 27 Jan 2014 11:20:03 +0100 Subject: Where is the version.h? In-Reply-To: <52E5BED1.70306@gmail.com> References: <52E5BED1.70306@gmail.com> Message-ID: <20140127102003.GA20063@vega> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 2014-01-27 10:05:05 (+0800), parmenides wrote: > According to LDD3, the linux/module.h automatically includes the > linux/version, which define some macros to help test the kernel version. > But I search the source tree, and can not find version.h in > include/linux. Where can I find it? > It lives in include/generated/uapi/linux/version.h If you've never built a kernel in your tree you won't find it though, because it's created from the Makefile. Look for version_h and filechk_version.h. Regards, Kristof