Date: Thu, 27 Jul 2000 14:08:00 -0700 (PDT)
From: Linus Torvalds <torvalds@transmeta.com>
The way code gets added to the kernel is when somebody cares enough to
write it, and it looks good enough to add.
Code does NOT get added to the kernel just because somebody makes a big
deal of nothing.
Ulrich,
Linus is right, no major structural change is necessary. For example,
here's a very short patch necessary to support __SC_CLK_TCK (which is
probably the most interesting of the sysconf() variables as far as I'm
concerned.) It's only a 5-line patch. (See below)
The more interesting case is actually pathconf and fpathconf, which
allows a program to fetch information about limits of the filesystem for
a particular pathname or file descriptor happens. This may become
interesting as we start supporting more filesystems. However, this is
(in my opinion) a 2.5 issue.
- Ted
Patch generated: on Thu Jul 27 17:35:11 EDT 2000 by tytso@snap.thunk.org
against Linux version 2.4.0test5-pre5
===================================================================
RCS file: kernel/RCS/sysctl.c,v
retrieving revision 1.1
diff -u -r1.1 kernel/sysctl.c
--- kernel/sysctl.c 2000/07/27 21:30:28 1.1
+++ kernel/sysctl.c 2000/07/27 21:33:27
@@ -47,6 +47,8 @@
extern int max_threads;
extern int nr_queued_signals, max_queued_signals;
+static int clock_tick = HZ;
+
/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
static int maxolduid = 65535;
static int minolduid;
@@ -229,6 +231,8 @@
{KERN_OVERFLOWGID, "overflowgid", &overflowgid, sizeof(int), 0644, NULL,
&proc_dointvec_minmax, &sysctl_intvec, NULL,
&minolduid, &maxolduid},
+ {KERN_CLOCK_TICK, "clock-tick", &clock_tick, sizeof (int),
+ 0444, NULL, &proc_dointvec},
{0}
};
===================================================================
RCS file: include/linux/RCS/sysctl.h,v
retrieving revision 1.1
diff -u -r1.1 include/linux/sysctl.h
--- include/linux/sysctl.h 2000/07/27 21:30:47 1.1
+++ include/linux/sysctl.h 2000/07/27 21:31:25
@@ -113,6 +113,7 @@
KERN_OVERFLOWGID=47, /* int: overflow GID */
KERN_SHMPATH=48, /* string: path to shm fs */
KERN_HOTPLUG=49, /* string: path to hotplug policy agent */
+ KERN_CLOCK_TICK=50, /* int: number of clock ticks/second */
};
-
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/
This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:24 EST