Top "Kernel-module" questions

A kernel module is a run-time loadable object file that is loaded into operating system kernel to add functionality to a running kernel.

How to recompile just a single kernel module?

Usually kernel source are stored in /usr/src/linux-2.6.x/. To avoid to recompile the entire kernel if I modify …

linux makefile linux-kernel gnu-make kernel-module
How do you create a loadable kernel module for Android?

I know there a number of walkthroughs and tutorials floating around out there which describe this activity, but after having …

android kernel-module android-source
How to get current hour (time of day) in linux kernel space

I'm writing a kernel module that checks to see if the time is between two specified hours, and disables input …

c linux linux-kernel kernel-module
How to stop Linux kernel threads on rmmod?

I wrote the following code to create a kernel thread: #include<linux/init.h> #include<linux/module.…

c module operating-system kernel kernel-module
module compiling : asm/linkage.h file not found

I am trying to compile an example of "hello world" Kernel Module, problems found on ubuntu 11.04, kernel 3.2.6, gcc 4.5.2 and fedora 16, …

linux linux-kernel kernel kernel-module
Linux kernel module crash debug: general protection fault: 0000 [#1] SMP

I have a kernel module for splitting incoming rtp packets and merging rtp outgoing packets. The program crashes once in 2/3 …

linux-kernel kernel kernel-module crash-dumps
How do I use ioctl() to manipulate my kernel module?

So I'm trying to write a kernel module that uses the linux/timer.h file. I got it to work …

linux linux-kernel kernel kernel-module gumstix
Docker loading kernel modules

I tried to install a kernel module, xfsprogs. It was successfully installed inside a container. It is really surprising, but …

docker kernel kernel-module
What is the error of "linux unable to handle kernel paging request at ffffffff00000010"?

I have written some Linux kernel code, which causes runtime error, and reports linux unable to handle kernel paging request …

c linux linux-kernel kernel kernel-module
Getting user process pid when writing Linux Kernel Module

How can I get the PID of the user process which triggered my Kernel module's file_operation.read routine (i.…

c linux kernel-module