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.

Read/write files within a Linux kernel module

I know all the discussions about why one should not read/write files from kernel, instead how to use /proc …

c file-io linux-kernel kernel-module
How do I configure modprobe to find my module?

I'm trying to get a kernel module to load at boot. If I run insmod /path/to/module.ko, it …

kernel kernel-module insmod
Cross compiling a kernel module

I'm trying to cross compile a helloworld kernel (2.6.x) module for ARM architecture on my intel x86 host. The codesourcery …

makefile cross-compiling embedded-linux kernel-module linux-toolchain
kvm: module verification failed: signature and/or required key missing - tainting kernel

I'm using Ubuntu 14.04 LTS and kernel version 3.13.11.4. I'm trying to load patched KVM modules kvm and kvm-intel and I'm getting …

c linux linux-kernel kernel-module kvm
How to compile a kernel module for Raspberry pi?

I'm having trouble compiling a kernel module for a raspberry pi. I want to compile a "hello world" kernel module …

linux makefile raspberry-pi kernel-module raspbian
insmod fails with "Unknown symbol in module" for a symbol defined in another module

I am working in Ubuntu. I am trying to make two kernel modules which uses each other functions. My problem …

c linux linux-kernel kernel-module insmod
Is there a way to figure out what is using a Linux kernel module?

If I load a kernel module and list the loaded modules with lsmod, I can get the "use count" of …

linux kernel kernel-module
insmod error: inserting './hello.ko': -1 Invalid module format"

I have just made my first driver module, the hello world module following LDD3. However unfortunately encountered this error: insmod: …

linux linux-kernel linux-device-driver embedded-linux kernel-module
Unknown symbol in while loading a kernel module

I need help understanding why I get an error when I insert a module. I have tried this with no …

linux linux-kernel kernel-module linux-scst
File I/O in a Linux kernel module

I'm writing a Linux kernel module that needs to open and read files. What's the best way to accomplish that?

file-io linux-kernel kernel-module