Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SysFs
Edit
PageHistory
Diff
Info
LikePages
You are viewing an old revision of this page.
View the current version
.
<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>. 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]. 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. Parts of SysFs are being deprecated. For example see http://lkml.org/lkml/2007/3/5/427 - this is one of several messages I've seen around different areas of SysFs and to me it seems like SysFs is losing favour -- opinion of IanMcDonald ---- CategorySystemAdministration
3 pages link to
SysFs
:
UDev
DevFs
SysctlNotes