lkml.org 
[lkml]   [1999]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.3.16-1: 'struct sysinfo' ABI has incompatible change
I am speed-reading through 2.3.16-1 and I see this snippet:

diff -u --recursive --new-file v2.3.15/linux/include/linux/kernel.h linux/include/linux/kernel.h
--- v2.3.15/linux/include/linux/kernel.h Thu Aug 26 13:05:41 1999
+++ linux/include/linux/kernel.h Thu Aug 26 12:34:55 1999
@@ -91,10 +91,11 @@
unsigned long freeram; /* Available memory size */
unsigned long sharedram; /* Amount of shared memory */
unsigned long bufferram; /* Memory used by buffers */
+ unsigned long totalbig; /* Total big memory size */
+ unsigned long freebig; /* Available big memory size */
unsigned long totalswap; /* Total swap space size */
unsigned long freeswap; /* swap space still available */
unsigned short procs; /* Number of current processes */
- char _f[22]; /* Pads structure to 64 bytes */
};

#endif

This is in 'struct sysinfo', which is the argument of the obscure
'sysinfo' call.

Thus, 2.2 clients will give strange results on 2.4 servers; and 2.4
clients will experience memory corruption when running on 2.2 servers.

Please, keep the total size the same, and put "totalbig" and "freebig"
into the padding area where they belong.

Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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