Raspberry Pi
  • Introduction
  • Raspberry Pi
    • Cover
    • Raspberry Pi
    • Documentation
      • Embedded Linux Wiki
      • Adafruit
    • Education
      • HelloWorld
      • HackSpace
      • MagPi
    • Raspberry Pi Foundation
    • Sandbox
  • Embedded Linux
    • Introduction
    • Initialization
      • System Information
      • Kernel Ring Buffer
      • Root Directory
      • User Directory
      • Kernel Modules
      • Filesystem
        • DebugFs
        • SysFs
        • ProcFs
        • TmpFs
      • Memory
      • Processes
      • Interfaces
      • Software Configuration Tool
    • Subsystem
      • Peripheral I/O
        • GPIO
        • PWM
        • I2C
        • SPI
        • UART
      • Bluetooth
  • Services
    • Docker
    • Home Assistant
  • XunanKab
    • Untitled
  • Bitol
    • Untitled
Powered by GitBook
On this page
  1. Embedded Linux
  2. Initialization
  3. Filesystem

SysFs

PreviousDebugFsNextProcFs

Last updated 7 years ago

sysfs is a pseudo file system provided by the Linux kernel that exports information about various kernel subsystems, hardware devices, and associated device drivers from the kernel's device model to user space through virtual files. In addition to providing information about various devices and kernel subsystems, exported virtual files are also used for their configuring. sysfs provides functionality similar to the sysctl mechanism found in BSD operating systems, 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 procfs, not sysfs which is mounted at /sys/.

pi@raspberrypi:~ $ mount | grep sysfs
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
pi@raspberrypi:~ $
Wikipedia