http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support
Dynamic Kernel Module Support (DKMS) is a framework used to generate Linux kernel
modules whose sources do not generally reside in the Linux kernel source
tree. DKMS enables kernel device
drivers to be automatically rebuilt when a new kernel is installed.
An essential feature of DKMS is that it automatically recompiles all
DKMS modules if a new kernel version is installed. This allows drivers and devices outside of the mainline kernel to continue working after a Linux kernel upgrade.
Another benefit of DKMS is that it allows one to install a new driver on an existing system, running an arbitrary kernel version, without any need for manual compilation or precompiled packages
provided by the vendor.
DKMS was written by the Linux Engineering Team at Dell in
2003. It is included in many distributions, such as Ubuntu, Debian, Red
Hat Enterprise Linux, Fedora, SuSE and CentOS.
DKMS is free software released under the terms of the GNU
General Public License (GPL) v2 or later.
CentOS:Build Your Own Kernel Modules
http://wiki.centos.org/HowTos/BuildingKernelModules#head-d2e4c05886f94c701e4ae74387d41d8c40c25d01