lkml.org 
[lkml]   [1998]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux version code
   Date: 	Wed, 4 Mar 1998 18:00:53 +0100
From: Guest <guest@manjak.knm.org.pl>

Sorry for the silly question, but how can I calculate LINUX_VERSION_CODE ?

If the Linux version number is X.Y.Z, then

LINUX_VERSION_CODE is X*65536 + Y*256 + Z

So for example, the Linux version code for 2.1.80 is

2 * 65536 + 1 * 256 + 80 = 131408

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.024 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site