X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47CDDFB6.8A192531@dessent.net>
Date: Tue, 04 Mar 2008 15:48:06 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: writing to /proc file system
References: <1614.10.38.32.167.1204643570.squirrel@mail.tmorton.com> 	 <20080304152915.GA428@calimero.vinschen.de> <b609cb3b0803041522i76007fc4m6fcf964e1542e8a3@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

NightStrike wrote:

> I'm pretty sure it's not writable on any system, let alone cygwin.
> It's not a real filesystem per se.  It's instead a read-only gateway
> into the kernel.

What?  No.  The entire /proc/sys tree on Linux is writable, which allows
you to tune a great number of kernel parameters at runtime, including
networking stack parameters, filesystems, cacheing, memory management,
etc.  In fact this forms the basis for the entire sysctl settings
system.  For example you can clear all disk caches with "echo 3 >
/proc/sys/vm/drop_caches".  More at:

<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/filesystems/proc.txt;h=dec99455321fdf86018ca5b2b62936103fd73031;hb=HEAD#l873>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/kernel.txt;h=8984a53962716f3f528964d6c318a9e7dcdf8a47;hb=HEAD>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/fs.txt;h=aa986a35e9945071abed471776565a2cf4644787;hb=HEAD>
<http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.24.y.git;a=blob;f=Documentation/sysctl/vm.txt;h=6f31f0a247d03137b85955bf59d06a666e34b1a0;hb=HEAD>

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

