title: Building kernel modules for different linux version
body: <p>I am new to writing kernel modules, so facing few non-technical problems.<br></p>
  
  <p>Since for creating kernel module for a specific kernel version ( say 3.0.0-10, 10 is patch number) requires same version kernel headers, so it looks straight to install kernel headers and start development over there.
   But kernel headers for patched kernel version are not available.
  As I have a guest kernel vmlinuz-3.0.0-10 running in machine and upon downloading kernel headers it says not found.</p>
  
  <ul>
  <li><p>other approach is to get the source for that specific kernel, but again problem is same source for patched kernel is not available ( its not necessary to get sources of linux-kernel-3.0.0-10 or even linux-kernel-3.0.0 and 10th patch). In some situation it is possible to get source of running kernel, but not always possible.</p></li>
  <li><p>another is to build kernel other than the running kernel and place built kernel in the machine. But it requires to build the modules of that kernel that is time-consuming and space-consuming process.</p></li>
  </ul>
  
  <p>So intention of asking this is to know what are the preferences of kernel driver developers. Are there other alternatives ?</p>
  
  <p>Is it possible to compile kernel module in one version and run in another version ( though it is going to give error, but are there any workaround for this ?)</p>