Re: Documentation about sysfs/procfs entries

From: Greg KH
Date: Wed Feb 13 2008 - 03:21:26 EST


On Wed, Feb 13, 2008 at 03:40:32PM +0800, Peter Teoh wrote:
> some questions:
>
> a. the list of parameters can presumably be extracted from existing
> file via "procname" search.....not sure if it is correct (as per
> attached, complete?)

I don't see anything attached :(

> b. what is the diff between /proc and /sys? in
> Documentation/filesystems/proc.txt....it is mentioned that /proc
> information will be published into a book...where is it? I can never
> understand this.

/proc is for process information originally, it grew to take lots of
other different things over the years.

/sys is a tree representation of the devices in the system, as well as a
location for a lot of other kernel specific information. The rules for
/sys are much more strict (one value per file, if the file isn't there,
the userspace program must be able to handle it, etc.)

> c. in Doc/sysctl are all the explanation for /proc/sys/* .... as a
> start i think we shall contribute fixing here....but according to your
> email, we should fix Doc/ABI...so I supposed some migration is needed?

Yes, migration of this information to the ABI/ directory would be very
good to have.

> d. In networking/ip-sysctl.txt a lot of the explanation for the
> attached procname's parameters are explained, may be we can relocate
> it to ABI?

Sounds good to me, but be sure to verify this with the networking
developers as well.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/