From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5d375e920704150106m5865747flb6ae25392f8744ca@mail.gmail.com> Date: Sun, 15 Apr 2007 10:06:13 +0200 From: Uriel To: 9fans@cse.psu.edu In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: [9fans] Re: [sources] 20070413: /rc/bin/cpurc.local Topicbox-Message-UUID: 485a22f6-ead2-11e9-9d60-3106f5b1d025 On Sat, 14 Apr 2007 06:17:24, 9changes@cat-v.org <9changes@cat-v.org> wrote: > + # turn on cooperative scheduling (assuming it starts off) > + echo coop > /dev/reboot > [geoff] --rwxrwxr-x M 121 geoff sys 448 Apr 13 18:06 rc/bin/cpurc.local What does this do? It is undocumented, and as far as I can tell it toggles the coopsched var, which is used once in the scheduler code. Would be nice to know what it does exactly, and why on earth it uses /dev/reboot. Note that there is no way to check the state of the variable, so one has no clue if one is enabling or disabling 'coopsched', whatever it does this interface is clearly far from ideal. While investigating this I noticed a couple of other undocumented commands for /dev/reboot that seem more relevant and self-evident but would still be nice to have documented. Best wishes uriel