Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


The Kernel Newbie Corner: Your First Loadable Kernel Module

Jul 02, 2009, 08:02 (0 Talkback[s])
(Other stories by Rob Day)

"While I'll try to keep this series distro-agnostic, I'll admit up front that I have a tendency to do all my work under the latest version of Fedora, but translating to some other Linux distro should not be difficult. And so, to work.

"Getting Started
Every beginning kernel programmer has a dream--to write, compile and load their first kernel module. So if you follow along here, we're going to do exactly that. In this opening article, we're going to keep it simple, and leave the trickier stuff for later pieces. One step at a time, as they say.

"Do You Need Root Privilege?
Ultimately, yes. There are ways to get around needing root privilege for things like setting up your kernel source tree and compiling your module, but there's no way to avoid being superuser when you're finally ready to load that module. So you either need the root password, or you need a friendly administrator--whichever is easier to get your hands on."

Complete Story

Related Stories: