Skip to contentSkip to conversation

/proc/systeminfo support

PATCH New Karsten Merker 1 participant 1 message Dec 10, 2001

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 /proc/systeminfo support

Hallo,

appended is a patch for implementing /proc/systeminfo, which shall contain system-specific (in contast to cpu-specific) information, in particular those parts of /proc/cpuinfo that were dropped with the 2.4.15 merge, but are needed by the Debian installer.

Ralf, could you please check the patch in?

Greetings,
Karsten

Signature · 4 lines
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.
Documentation/Configure.help renamed from filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/Documentation/Configure.help +9 -0
diff -Nur /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/Documentation/Configure.help linux/Documentation/Configure.help
@@ -14087,6 +14087,15 @@
   This option will enlarge your kernel by about 67 KB. Several
   programs depend on this, so everyone should say Y here.
 
+/proc/systeminfo support (MIPS specific)
+CONFIG_PROC_SYSTEMINFO
+  This option enables /proc/systeminfo, which gives system-specific
+  (in contrast to cpu-specific) information about the machine
+  the kernel is running on. This includes the machine type
+  (such as "DECstation 5000/1xx" and the endianess used by the
+  kernel (MIPS CPUs are bi-endian and userspace-endianess can be
+  different from kernelspace-endianess on some systems).
+
 Support for PReP Residual Data
 CONFIG_PREP_RESIDUAL
   Some PReP systems have residual data passed to the kernel by the
fs/Config.in renamed from filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/Config.in +1 -0
diff -Nur /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/Config.in linux/fs/Config.in
@@ -60,6 +60,7 @@
 tristate 'OS/2 HPFS file system support' CONFIG_HPFS_FS
 
 bool '/proc file system support' CONFIG_PROC_FS
+dep_mbool '  /proc/systeminfo support on MIPS' CONFIG_PROC_SYSTEMINFO $CONFIG_MIPS $CONFIG_PROC_FS
 
 dep_bool '/dev file system support (EXPERIMENTAL)' CONFIG_DEVFS_FS $CONFIG_EXPERIMENTAL
 dep_bool '  Automatically mount at boot' CONFIG_DEVFS_MOUNT $CONFIG_DEVFS_FS
fs/proc/proc_misc.c renamed from filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/proc/proc_misc.c +68 -1

93 lines not on this page · raw message