2002-01-25 07:17:57

by Ulrich Windl

[permalink] [raw]
Subject: patch: sysctl.h (allocating new number)

Index: include/linux/sysctl.h
===================================================================
RCS file: /root/LinuxCVS/Kernel/include/linux/sysctl.h,v
retrieving revision 1.1.1.6
retrieving revision 1.1.1.6.2.1
diff -u -r1.1.1.6 -r1.1.1.6.2.1
--- include/linux/sysctl.h 2001/12/13 18:56:49 1.1.1.6
+++ include/linux/sysctl.h 2001/12/29 14:59:21 1.1.1.6.2.1
@@ -124,8 +124,19 @@
KERN_CORE_USES_PID=52, /* int: use core or core.%pid */
KERN_TAINTED=53, /* int: various kernel tainted flags */
KERN_CADPID=54, /* int: PID of the process to notify on CAD */
+ KERN_TIME=55, /* directory: time */
};

+/* KERN_TIME names: */
+enum
+{
+ KERN_TIME_TIMEZONE=1, /* struct: timezone */
+ KERN_TIME_RTC_UPDATE=2, /* int: rtc_update */
+ KERN_TIME_RTC_RUNS_LOCALTIME=3, /* int: rtc_runs_localtime */
+ KERN_TIME_TIME_TICK=4, /* int: time_tick */
+ KERN_TIME_TICKADJ=5, /* int: tickadj */
+ KERN_TIME_PPS_VAR=99, /* struct pps_var: pps */
+};

/* CTL_VM names: */
enum


2002-01-25 22:39:37

by H. Peter Anvin

[permalink] [raw]
Subject: Re: patch: sysctl.h (allocating new number)

Followup to: <3C51146F.6774.15F75C@localhost>
By author: "Ulrich Windl" <[email protected]>
In newsgroup: linux.dev.kernel
>
> I have implemented sysctl extensions to read/write the ``tick'' and
> slew rate of adjtime() (among others) for my new kernel clock model
> using nanoseconds (PPSkit-2.0.1). If there's demand to a back-merge to
> the main stream sources, plese say what you would like. As the project
> was sponsored a little bit recently, I'm willing to donate a few
> working hours for that.
>

I, for one, would definitely see the clock model merged into the
mainstream kernel.

-hpa
--
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <[email protected]>

2002-01-27 13:45:55

by Martin Dalecki

[permalink] [raw]
Subject: Re: patch: sysctl.h (allocating new number)

H. Peter Anvin wrote:

>Followup to: <3C51146F.6774.15F75C@localhost>
>By author: "Ulrich Windl" <[email protected]>
>In newsgroup: linux.dev.kernel
>
>>I have implemented sysctl extensions to read/write the ``tick'' and
>>slew rate of adjtime() (among others) for my new kernel clock model
>>using nanoseconds (PPSkit-2.0.1). If there's demand to a back-merge to
>>the main stream sources, plese say what you would like. As the project
>>was sponsored a little bit recently, I'm willing to donate a few
>>working hours for that.
>>
>
>I, for one, would definitely see the clock model merged into the
>mainstream kernel.
>
> -hpa
>
Amen to this!

I, for two, would definitely like to see it there as well!