The Kernel Newbie Corner: Your First Loadable Kernel Module
Jul 02, 2009, 08:02 (0 Talkback[s])
(Other stories by Rob Day)
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
"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.
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."
- How to get ath5k working on Jaunty with Compat-wireless and a self-compiled kernel(May 27, 2009)
- Linux Unified Kernel -- Run Windows Applications Just Like Running a Linux Program(May 18, 2009)
- Kernel Log: What's coming in 2.6.29 - Part 7: Audio, FireWire, USB, Video and more(Mar 16, 2009)
- Interactive map of Linux Kernel(Mar 15, 2009)
- Linux 2.6 kernel Storage Tuning Tips(Jan 19, 2009)
- Kernel Log: What's new in 2.6.29 - Part 2: WiMAX(Jan 12, 2009)
- Using Kernel Customization Tools(Dec 23, 2008)
- Keeping the Kernel Klean(Oct 14, 2008)
- It's... Linux kernel 2.6.27(Oct 10, 2008)
- Anatomy of Linux Loadable Kernel Modules(Jul 23, 2008)
- Kernel Space: Tightening Symbol Exports(Dec 06, 2007)