From the course: Linux Device Drivers: Reading, Writing, and Debugging
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Using tools with a network driver - Linux Tutorial
From the course: Linux Device Drivers: Reading, Writing, and Debugging
Challenge: Using tools with a network driver
(upbeat electronic music) - [Instructor] Ready for some more challenges? Here's some challenges having to do with network drivers and interfaces. So on your machine, if you have a wifi network interface, do an IPA, just to see your interfaces. Determine what driver it uses using the ethtool. Challenge number two. Try out different commands here to compare. Use ip, and proc/net/dev, and netstat, and ethtool, all in the appropriate way to see how many receive packets you've had on your network interfaces. Number three is a little more complicated. You're going to have two windows or two panes. You're going to start tracing your network interface's interrupt handler, so you got to figure out what the name of that function is. Start that tracing in one window, and then in the other window, copy the file called trace into a temporary, sleep for 10 seconds, copy that trace file again, and then grep -c to count some part of the name of the function, or maybe its interrupt. And then you can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Look at the role of network device drivers4m 25s
-
(Locked)
Network driver interrupt handling5m 39s
-
(Locked)
Examine the net_device_ops structure5m 40s
-
(Locked)
Examine PCI-related APIs in network drivers4m 57s
-
(Locked)
Challenge: Using tools with a network driver1m 52s
-
(Locked)
Solution: Using tools with a network driver3m 31s
-
(Locked)
-
-