Re: /proc query

From: bert hubert (ahu_at_ds9a.nl)
Date: 12/12/04

  • Next message: james4765_at_verizon.net: "[PATCH] moxa: Remove ancient changelog README.moxa"
    Date:	Sun, 12 Dec 2004 13:58:41 +0100
    To: cranium2003 <cranium2003@yahoo.com>
    
    

    On Fri, Dec 10, 2004 at 06:50:14PM -0800, cranium2003 wrote:
    > Can a user program be able to overwrite /proc entry
    > with some changes to that /proc file frequently?
    > can same file be able to read by kernel in its actual
    > kernel execution?

    Userspace can only set settings in the kernel when the kernel allows this.
    Procfs is not a storage filesystem, it stores settings and exposes
    information.

    The kernel does not 'read' files in /proc per se, it has direct access to
    the relevant settings.

    Procfs is like a window on the kernel, and in some cases you can hand the
    kernel new settings.

    -- 
    http://www.PowerDNS.com      Open source, database driven DNS Software 
    http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: james4765_at_verizon.net: "[PATCH] moxa: Remove ancient changelog README.moxa"

    Relevant Pages

    • Re: Ping Problems On Two-Machine Linux Network
      ... Change your Crossover cable or check your card setting for right media ... ifconfig output seems OK.It is a hardware issue. ... but I didn't know what settings to use for the BROM ... > Kernel IP routing table ...
      (comp.os.linux.networking)
    • Re: sb live (emu10k1) stops working between 2.6.23.1 and 2.6.23.7
      ... You just need to run "alsactl -F restore" to force restoration of your ... of your settings that work correctly under your previous kernel. ...
      (Linux-Kernel)
    • RE: XP/ FC1 on inspiron 5150
      ... the install, which precluded the touchpad from working until I made the ... the GUI based settings worked for me. ... part of the installation process that will prompt you for kernel ... with other options in grub.conf after you successfully boot up. ...
      (Fedora)
    • Re: shared memory in computational chemistry
      ... How to set shmmax in debian? ... may or maynot be changed by the kernel itself. ... But based on documentation of the default kernel VM and memory ... Settings below. ...
      (Debian-User)
    • Re: /etc and /usr/local/etc directories
      ... that's kernel and userland) settings you have /etc ... Perhaps the way you load modules and the way you pass module parameters to the ... least the Porters Handbook, yes. ...
      (freebsd-questions)