[Gllug] Re: [CHINWAG] /proc

John Hearns john.hearns at cern.ch
Thu May 23 12:01:31 UTC 2002


Tet! Watch that Subject header!
9Grins as he blatantly hijacks Colin's thread)

On Thu, 2002-05-23 at 13:47, tet at accucard.com wrote:

> Because it's really *not* there. /proc is basically just the kernel
> exposing information to userland. It happens to use filesystem
> semantics to do so (rather than, say, a system call), because it's
> a convenient interface for some things. 
Good point. Anyone else care to say what "some things" might be?



The kernel effectively has
> a filesystem driver for procfs, so that when you cat a file, instead
> of reading blocks from disk, it reads information from kernel data
> structures instead. Similarly, writing to /proc updates the relevant
> data structures (although not all can be written to).
> 
> >If so, are there any fun - or time wasting - things that could be piped to 
> >the /proc system?
> 
> Yes, plenty! See /sur/src/linux/Documentation/filesystems/proc.txt for
> an incomplete list.
Good stuff.

Whos's next with the talking stick - anyone newbies out there want to
say "Excuse me - I didn't understand a word there".



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list