Product Code Database
Example Keywords: sweatshirt -playstation $60
barcode-scavenger
   » » Wiki: Sysfs
Tag Wiki 'Sysfs'.
Tag

sysfs is a pseudo file system provided by the that exports information about various kernel subsystems, hardware devices, and associated from the kernel's device model to through . In addition to providing information about various devices and kernel subsystems, exported virtual files are also used for their configuration.

sysfs provides functionality similar to the mechanism found in , with the difference that sysfs is implemented as a virtual file system instead of being a purpose-built kernel mechanism, and that, in Linux, sysctl configuration parameters are made available at /proc/sys/ as part of , not sysfs which is mounted at /sys/.


History
During the 2.5 development cycle, the Linux driver model was introduced to fix the following shortcomings of version 2.4:
  • No unified method of representing driver-device relationships existed.
  • There was no generic mechanism.
  • was cluttered with non-process information.

Sysfs was designed to export the information present in the which would then no longer clutter up procfs. It was written by Patrick Mochel. Maneesh Soni later wrote the sysfs backing store patch to reduce memory usage on large systems.

During the next year of 2.5 development the infrastructural capabilities of the driver model and driverfs began to prove useful to other subsystems. were developed to provide a central object management mechanism and driverfs was renamed to sysfs to represent its subsystem agnosticism.

Sysfs is mounted under the mount point. If it is not mounted automatically during initialization, it can be mounted manually using the mount command: mount -t sysfs sysfs /sys.


Supported buses
ACPI
Exports information about ACPI devices.

PCI
Exports information about PCI and devices.

PCI Express
Exports information about devices.

USB
Exports information about USB devices.

SCSI
Exports information about devices, including , and interfaces.

S/390 buses
As the S/390 architecture contains devices not found elsewhere, special buses have been created:
* css: Contains subchannels (currently the only driver provided is for I/O subchannels).
* ccw: Contains channel attached devices (driven by CCWs).
* ccwgroup: Artificial devices, created by the user and consisting of ccw devices. Replaces some of the 2.4 chandev functionality.
* iucv: Artificial devices like netiucv devices which use VM's interface.


Sysfs and userspace
Sysfs is used by several utilities to access information about hardware and its driver (kernel modules) such as or HAL. Scripts have been written to access information previously obtained via , and some scripts configure device drivers and devices via their attributes.


See also


External links

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs