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.

What is the opposite of `mknod`?

I am learning to write character device drivers from the Kernel Module Programming Guide, and used mknod to create a …

command-line linux-kernel linux-device-driver kernel-module mknod
error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]

I'm trying to compile a kernel module on kernel 3.13 and I get this error: error: implicit declaration of function 'create_…

c linux linux-kernel kernel-module
What is a Kernel thread?

i am just started coding of device driver and new to threading, went through many documents for getting an idea …

c operating-system linux-kernel kernel-module
How to find the list of processes using a particular kernel module?

When I try to rmmod a module I get the error message "Error: Module in use" , lsmod | grep <module …

linux driver kernel-module
Get current time in seconds in kernel module

What is the standard way to get the current time in seconds (since the epoch) in a kernel module? I …

c time linux-kernel kernel-module
linux kernel module linker warnings: "*** Warning: <function> [<module>] undefined!" - any way to get rid of them?

While compiling Linux kernel modules that depend on each other, linker gives undefined symbol warnings like Building modules, stage 2. MODPOST *** …

c++ linux kernel-module compiler-errors
How remap_pfn_range remaps kernel memory to user space?

remap_pfn_range function (used in mmap call in driver) can be used to map kernel memory to user space. …

linux-kernel linux-device-driver kernel-module virtual-address-space
How to reload modified kernel modules

How can I instruct the system to reload all kernel modules that have changed? (I am developing a driver with …

linux linux-kernel kernel-module
How to autoload a kernel module in Gentoo Linux?

I want to autoload some kernel modules when it's started. I've read the manual book, but can't help. Now the …

linux kernel-module gentoo
Linux stuck in CPU soft lockup?

My system is a CentOS 6.3 (running Kernel version 2.6.32-279.el6.x86_64). I have a loadable kernel module which is a …

linux linux-kernel centos driver kernel-module