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.

System call interception in linux-kernel module (kernel 3.5)

I need to replace a standard system call (e.g. SYS_mkdir) with my own implementation. As I read in …

c module linux-kernel kernel-module
MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined error

I am trying to build kernel for AOSP 4.4.2 for a device. When I compile the kernel I get build/core/…

kernel-module android-source android-make
Can't Unload Kernel Extension; Classes Have Instances

I'm writing an OSX kernel extension for an audio device driver (it's software, but emulates a hardware device). During development, …

macos kernel-module kernel kernel-extension
Linux: How to assign USB driver to device

This question is two-fold: 1- How do you manually detach a driver from a USB device and attach a different …

linux linux-kernel usb kernel-module udev
Using sk_buff to add an Ethernet frame header

I have a kernel module that captures outgoing Internet traffic(Netfilter hook: LOCAL_OUT) At this hook, there's still no …

c linux-kernel kernel kernel-module netfilter
Marking loadable kernel module as in-tree

This question is about linux kernel 4.10. Loading an out-of-tree LKM causes kernel to print a warning: module: loading out-of-tree module …

linux linux-kernel kernel kernel-module
Accessing a serial port from a linux kernel module

Hello Linux Kernel Driver Gurus! I'm writing a v4l2 driver for a camera that uses a serial interface for …

linux-kernel serial-port linux-device-driver kernel-module
How to access data/payload from tcphdr (sk_buff) struct on debian 64 bits?

I'm working on a small firewall, i had to retrieve the datas from each tcp packet from port 80 (http) for …

c network-programming kernel-module netfilter
How to execute shell command in kernel programming?

I want to use system() function of stdlib.h in my c code. I am actually working on kernel programming. …

c ubuntu linux-kernel kernel-module
Linux Kernel Module - Creating proc file - proc_root undeclared error

I copy and paste code from this URL for creating and reading/writing a proc file using a kernel module …

linux-kernel kernel kernel-module