Red Hat Kernel - in kernel code, how do i find out if the kernel is from redhat?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Kernel > May 2006 > in kernel code, how do i find out if the kernel is from redhat?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author in kernel code, how do i find out if the kernel is from redhat?
alakesh.haloi@gmail.com

2006-05-11, 1:19 am

Is there any macro or any other means by which i can find out that the
kernel in my host is from Redhat?

From 2.6.12, sk_alloc signature changed from
struct sock *sk_alloc(int family, gfp_t priority, int zero_it,
kmem_cache_t *slab);
into struct sock *sk_alloc(int family, gfp_t priority,struct proto
*prot, int zero_it);
Kernel for Fedora Core, use the new signature from 2.6.11 kernels.

So all i want to do is to identify if it is redhat kernel or vanilla
kernel ( from kernel.org )
and looking for a macro or similar way to do it

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com