From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Write, trace, debug

Challenge: Write, trace, debug - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Challenge: Write, trace, debug

(upbeat music) - [Instructor] Okay, here's some challenges for tracing and debugging. First question, type in our module here, as skeleton.c. It's worthwhile to actually type that in. If you have exercise files and you have a copy already, you don't have to type it in, but, I recommend you type it in because as you're typing it in, you're going to be reading it, and it'll just sink in a little bit more. What we can see is it's very simple. It's got a init function, it's got a cleanup function. registers function and so forth. And then we want you to make a Makefile. And again when you type it in, especially if you have a typo, then you're going to learn more. So, you type those in, build it. Building it's going to take some work because you might have to install some packages with the kernel headers and so forth, but, try to get that done. So you build it, you int smart it, you RMR it, and then look at the…

Contents