From the course: Advanced Linux: The Linux Kernel
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Introduction to /sys - Linux Tutorial
From the course: Advanced Linux: The Linux Kernel
Introduction to /sys
- [Instructor] Let's talk a little bit about the sys file system, which is mounted on /sys. So this should happen automatically at boot time, so you could change directory at /sys, you should see lots of stuff. Originally, sysfs was for showing how hardware is connected on your system, hardware with buses and connections is a tree structure, just like a directory, so you could walk the directory structure and walk the hardware information. It still has that and lots more. In fact, underneath sys you should probably find tens of thousands of files and directories. We're not going to talk about all of them. In fact, it's difficult to talk in any kind of breadth about the sys file system, but we're going to hit some high points for you. A couple of my favorite things underneath sys actually are the debug file system and the tracing information. When I'm working on a device driver or something like that, it's really nice to find out what's going on in the kernel, for example, tracing all…
Contents
-
-
-
Discover and control hardware5m 55s
-
(Locked)
Challenge: Hardware26s
-
(Locked)
Solution: Hardware1m 32s
-
(Locked)
System calls in-depth4m 30s
-
(Locked)
Challenge: System calls (syscalls)1m 51s
-
(Locked)
Solution: System calls (syscalls)4m 45s
-
(Locked)
Read messages from the kernel and /proc3m 34s
-
(Locked)
Challenge: kernel messages and proc1m 12s
-
(Locked)
Solution: kernel messages and proc2m 19s
-
(Locked)
Introduction to /sys2m 30s
-
(Locked)
Challenge: sysfs1m 17s
-
Solution: sysfs3m 38s
-
(Locked)
Device drivers and device files4m 17s
-
(Locked)
Challenge: Drivers and device files44s
-
(Locked)
Solution: Drivers and device files2m 47s
-
-
-
-
-
-