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.

Kernel module: how to get console ouput?

I am writing a kernel module, and I want to be able to print something on the console output when …

linux kernel-module printk
Compile FTDI kernel module

I'm trying to add the usb to serial port driver to my arch linux arm device, and I noticed that …

linux linux-kernel serial-port kernel-module ftdi
Warning building a kernel module that uses exported symbols

I have two kernel modules (say modA and modB). modA exports a symbol with EXPORT_SYMBOL(symA) and modB uses …

linux gcc kernel-module
Base address at which the linux kernel is loaded

I have a couple of doubts about how the kernel is loaded into memory. Upon inspecting /proc/kallsyms I'm able …

linux linux-kernel kernel-module elf virtual-memory
Can I replace a Linux kernel function with a module?

Im getting into kernel work for a bit of my summer research. We are looking to make modifications to the …

c linux module linux-kernel kernel-module
Order of preference - printk() vs dev_dbg() vs netdev_dbg()

I recently ran a the scripts/checkpatch.pl script within the linux source tree and got this Warning: WARNING: Prefer …

linux kernel linux-device-driver kernel-module
Finding the kernel address of a loadable kernel module

I'm trying to find the kernel address space where my loadable kernel module is relocated by insmod. I came to …

linux linux-kernel kernel embedded-linux kernel-module
Compiling a driver as a part of a kernel, not as a module

I am trying to create a minimalistic Linux for an embedded device. That means the necessity of compiling kernel and …

linux compilation kernel driver kernel-module
How to append data on a packet from kernel space?

I am trying to append some data on a packet from kernel space. I have an echo client and server. …

c linux kernel-module netfilter
kernel driver reading ok from user space, but writing back is always 0

So I'm working my way through kernel driver programming, and currently I'm trying to build a simple data transfer between …

linux linux-device-driver kernel-module serial-communication