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.
Challenge: Drivers and device files - Linux Tutorial
From the course: Advanced Linux: The Linux Kernel
Challenge: Drivers and device files
(upbeat music) - [Instructor] Here's your little challenge for device files. If you do a long list on /dev/null, you'll see its major and minor number. Can you find other device files that have the same major number that are essentially implemented by the same driver in the kernel? Also with /dev/null, you're probably familiar with redirecting output to /dev/null, which essentially throws it away. Can you read from /dev/null? What happens if you try to read from /dev/null? Do you get an error? Give that a try. Use strace to figure out what happens when you cat /dev/null. Good luck.
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
-
-
-
-
-
-