____            _____ ____    _     _                  
/ ___| _   _ ___|  ___/ ___|  | |   (_)_ __  _   ___  __
\___ \| | | / __| |_  \___ \  | |   | | '_ \| | | \ \/ /
 ___) | |_| \__ \  _|  ___) | | |___| | | | | |_| |>  < 
|____/ \__, |___/_|   |____/  |_____|_|_| |_|\__,_/_/\_\
       |___/                                            

Abstract


Introduction


Sysfs is a mechanism that represents kernel objects, their attributes and their relationship with each other. It also provides two components fro kernel programming interface for exporting these items via sysfs.It also provides ui to view and manipulate thee items that map back to kernel objects.

Internal               | External
* Kernel Object        | Directories
* Object Attributes    | Regular Files
* Object Relationships | Symblic Links

History



Directory Structure


/sys/
├── block
├── bus
├── class
├── dev
├── devices
├── firmware
├── fs
├── hypervisor
├── kernel
├── module
└── power
11 directories, 0 files
Block

Bus


/sys/bus/
├── acpi
├── cec
├── clockevents
├── clocksource
├── container
├── cpu
├── dax
├── edac
├── event_source
├── genpd
├── gpio
├── hdaudio
├── hid
├── i2c
├── isa
├── machinecheck
├── mdio_bus
├── media
├── memory
├── mipi-dsi
├── mmc
├── nd
├── node
├── nvmem
├── pci
├── pci-epf
├── pci_express
├── platform
├── pnp
├── scsi
├── sdio
├── serial
├── serio
├── spi
├── usb
├── usb-serial
├── virtio
├── vme
├── wmi
├── workqueue
├── xen
└── xen-backend

42 directories, 0 files
Class


/sys/class
├── ata_device
├── ata_link
├── ata_port
├── backlight
├── bdi
├── block
├── bluetooth
├── bsg
├── dax
...
├── scsi_host
├── sound
├── spi_master
├── spi_slave
├── thermal
├── tty
├── vc
├── video4linux
├── vtconsole
├── wakeup
├── watchdog
└── wmi_bus

62 directories, 0 files
Devices

firmware

module

power

Code Organization


Initialization