On 2011-12-10, Pandu Poluan <pa...@poluan.info> wrote:

> And even you can't guarantee that the kernels are the same. Many distros
> introduce their own distro-specific patches to the vanilla kernel.

RedHat is particularly bad about this.  I maintain a couple Linux
drivers that have to work with a wide range of kernel versions.  There
are lot's of #ifdef's that depend on not only the kernel and some of
them also have to check whether it's a _RedHat_ kernel or not, since
RedHat is fond of shipping a kernel with version X.Y.Z that isn't even
close to compatible with the driver API for vanilla kernel X.Y.Z.

> With Gentoo, it's even more complicated, as most experienced
> Gentooroids will configure and compile their own kernels.

I've never had to add special code to a driver to handle the Gentoo
version of a kernel.

-- 
Grant




Reply via email to