Differences between version 8 and predecessor to the previous major change of SysFs.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 8 | Last edited on Wednesday, June 20, 2007 5:49:45 pm | by AristotlePagaltzis | Revert |
Older page: | version 7 | Last edited on Monday, June 18, 2007 11:02:16 am | by DanielLawson | Revert |
@@ -1,12 +1,8 @@
-sysfs is a Linux
pseudo filesystem
that is used
to export information, and
runtime configuration support
from drivers into userspace.
By convention (
[LSB])
it's mounted on <tt>/sys</tt>.
+<tt>
sysfs</tt>
is a pseudo FileSystem
that the LinuxKernel uses
to export runtime configuration and statistics
from drivers into userspace. By [LSB] convention
it's mounted on <tt>/sys</tt>.
-The [sysfsutils|http:
//linux-diag.sourceforge.net
/Sysfsutils.html] package contains a library and command line tool
(<tt>systool
</tt>)
to explore
<tt>/sys
</tt> and display and alter current settings
. The
[Debian
] package at least uses this tool
to provide boot time configuration of SysFs values through the
<tt>/etc
/sysfs
.conf
</tt> file
.
+Note that some kernel options are still configured through <tt>
/proc
/sys<
/tt>
(or equivalently using
<tt>sysctl
</tt>, which is also called at boot time
to read
<tt>/etc/sysctl.conf
</tt>). A general rule of thumb is that if the kernel option is related directly to some piece of hardware, it's probably configured via <tt>sysfs</tt> (eg
. [NIC
] settings such as [MTU]), and if it has
to do with other kernel behaviour (eg. network [Protocol] settings), it'll be accessable via
<tt>/proc
/sys</tt>
. Other examples for things you tweak via <tt>sysfs
</tt> include [RAID], [SCSI] and other BlockDevice configuration such as [IO schedulers | LinuxIoScheduler]
.
-Also note that some kernel options are still configured through
<tt>/proc/sys
</tt> or using
<tt>sysctl
</tt> and at
boot time through <tt>/etc/sysctl
.conf</tt>. A general rule of thumb is that if the kernel option is related directly to some piece of hardware, it's probably configured via sysfs, and if it's to do with other kernel behaviour, it'll be accessable via <tt>/proc/sys</tt>
-
-EG: [RAID], [SCSI] and other block device configuration such as [IO Schedulers|LinuxIoScheduler] are configured via SysFs. Network card settings such as MTU can be set via SysFs, but network protocol settings are tweaked through sysctl.
-
-See SysctlNotes for more information
.
+The [sysfsutils | http://linux-diag.sourceforge.net/Sysfsutils.html] contain a library and a CommandLine tool called
<tt>systool
</tt> to explore
<tt>/sys
</tt> and display and alter current settings. The corresponding [Debian] [Package] also uses this tool to provide
boot time configuration of SysFs values
through the
<tt>/etc/sysfs
.conf</tt> file
.
----
-CategorySystemAdministration, CategoryNotes
+CategorySystemAdministration