Sysfs is a Linux filesystem, normally mounted on /sys, which provides information about hardware and kernel components.

learn more… | top users | synonyms

2
votes
1answer
258 views

CONFIG_GPIO_SYSFS makes /sys/class/leds disappear

I have an embedded Linux board I'm working on, with a button and a couple LEDs. By default, I can control the LEDs via /sys/class/leds/redled/brightness However, I have no way to monitor the ...
0
votes
1answer
45 views

How to figure out primary/secondary IDE channel via sysfs (if possible)

Though I've got quite a good basic understanding of sysfs meanwhile, there are still things I cannot solve on my own. For a starter, I'd like to figure out via sysfs (later by scripting of course) ...
3
votes
0answers
969 views

Is it possible to get network interface index not via /sys?

So what I'm looking for is an interface index (or name) but the real one. if_nametoindex(3) and ioctl(2) don't seem to help me here. Now the only way I found how to do this is via /sys. Let me ...
3
votes
0answers
1k views

How to retrieve sysfs devpath of a USB flash drive given its corresponding partition sysfs path?

I have a USB flash drive connected to a hub. Its storage device partition devpath in sysfs is /devices/pci0000:00/0000:00:12.2/usb6/6-1/6-1.2/6-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdb/sdb1. I ...
0
votes
0answers
44 views

Will sysfs replace procfs in the furture?

As I know, procfs has been old and chaotic, so sysfs was invented to resolve the problem. Will sysfs replace procfs in the furture? Or, sysfs will just replace part of the functions of procfs, such ...
0
votes
0answers
328 views

Settings value in /sys/devices/platform/i8042/serio1/serio2/speed as no effect

I'm following this tutorial to ajust the TrackPoint speed for my Lenovo T420. However, setting a value in /sys/devices/platform/i8042/serio1/serio2/speed has no effect. The trackpoint is unaffected ...