Where are the macros that define the major/minor/release versions located in Red Hat Enterprise Linux 6?

Solution Verified - Updated -


Problems are encountered when compiling kernel modules that require the use of the following macros which were previously defined in Red Hat Enterprise Linux 5 in header file include/linux/version.h in the following format:

#define RHEL_MAJOR 5
#define RHEL_MINOR 1
#define RHEL_RELEASE_CODE 1281
#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))


  • Red Hat Enterprise Linux 6 beta
  • Header file include/linux/version.h

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content