Skip to main content

Questions tagged [sysfs]

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

1 vote
1 answer
120 views

System is Linux Mint 21 based. My USBstick was receiving some files and after message "Do not disconnect" had disappeared I unplugged it. This time though waiting whirl remained in Disks GUI ...
Martian2020's user avatar
  • 1,501
0 votes
1 answer
51 views

sysfs is a feature of the Linux kernel that allows kernel code to export information to user processes via an in-memory filesystem. The organization of the filesystem directory hierarchy is strict, ...
Kenzo's user avatar
  • 3
0 votes
1 answer
221 views

I have disabled a USB (2.0) port on a production Linux system with this command: echo 1 > /sys/bus/usb/devices/usb2/2-1/2-1.8/port/disable It successfully disabled the 8th USB port on hub #1. ...
Elisa K. K.'s user avatar
1 vote
0 answers
192 views

Background Information: I'm running Ubuntu 24.04.1 LTS (Noble Numbat, kernel 6.8.0-51-generic) on an AMD Ryzen 9 7950X3D, and I'm investigating some odd behavior where the CPU governor/driver will ...
JimXugle's user avatar
1 vote
1 answer
509 views

This was originally asked on Stack Overflow, but it was closed for being off-topic. Hopefully this is the right forum for the question. I'm writing a character device driver that exposes class and ...
olishmollie's user avatar
0 votes
0 answers
250 views

I'm trying to execute a container based on Ubuntu 20.04 and some additional dependencies. It ended up in an error where the project (something external) is looking for files/programs, as shown below. ...
V B's user avatar
  • 1
1 vote
0 answers
126 views

I am learning RPMSG in Linux, and I found there is a samples/rpmsg_client_sample.c. I built it into a kernel module, but I don't know how to make its probe function to be called? And is there any ...
wangt13's user avatar
  • 651
0 votes
1 answer
211 views

I wrote a driver that exposes I2C registers via an IIO device, this device operates in direct mode (read/write directly to files in sysfs), the files are correctly created in sysfs and work fine. I ...
Pedru's user avatar
  • 101
0 votes
0 answers
70 views

udisks exists for regular users, root must (and is) able to live without it, I need help figuring out how. The goal is to do exactly what udisks power-off /dev/sdX does without udisks. hdparm is out ...
EmErAJID's user avatar
0 votes
1 answer
237 views

I try to count total memory usage in linux via /sys/fs For this I've found /sys/fs/cgroup/memory/0/memory.usage_in_bytes in https://docs.kernel.org/admin-guide/cgroup-v1/memory.html#user-interface i'...
Irina's user avatar
  • 131
0 votes
1 answer
735 views

What is the structure of linux memory via /sys/fs/cgroup/memory.stat? what is the anon memory? What is the file memory? how to get the full used memory via /sys/fs?
Irina's user avatar
  • 131
1 vote
0 answers
338 views

I have a temp/humidity sensor connected to the i2c-0 interface on a Raspberry Pi: Rpi OS ver 'bookworm'. It works fine, and I can read sensor values from the files in /sys/class/hwmon/hwmon2 (or ...
Seamus's user avatar
  • 3,928
2 votes
1 answer
111 views

I have a Raspberry Pi that is running the 'bookworm' version of the OS; the 64-bit version of the OS if that makes any difference. I've installed one of the SHT3X temperature & humidity sensors, ...
Seamus's user avatar
  • 3,928
0 votes
1 answer
501 views

I'm trying to get a systemd service to restart when some ethernet cable gets plugged in, by monitoring changes to the /sys/class/net/eth0/carrier_up_count system file. I tried creating a systemd path ...
Quentin's user avatar
  • 25
0 votes
1 answer
124 views

I am looking at files in sysfs, specifically in /sys/bus/usb/devices The files contains small numbers, expressed as two characters, for example "00" All of the examples that I have contain ...
Peter Du's user avatar
  • 133

15 30 50 per page
1
2 3 4 5
12