Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
79 views

Introduction: I'm using a custom board based on an i.MX6q SoC that communicates with an FPGA on the EIM bus: this communication is managed via custom driver module. The DTACK signal and memory WDOG ...
ronin80's user avatar
1 vote
0 answers
27 views

I am working on a Raspberry Pi 5 (aarch64). uname -a: Linux rpi5 6.8.0-1036-raspi #40-Ubuntu SMP PREEMPT_DYNAMIC Mon Aug 18 09:50:42 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux I load a kernel module I ...
Gal Kaptsenel's user avatar
0 votes
1 answer
131 views

Intro I have this solution. MNWE - (Minimum Non-Working Example) ChatGPT gave me the following test app: #include <windows.h> #include <stdio.h> #define DEVICE_PATH "\\\\.\\...
coderodde's user avatar
  • 957
3 votes
2 answers
227 views

I am having an issue with my module compilation written in C for Kernel and I even can't find documentation which would be helpful. My issue looks like following. There are several files written in C ...
yrvsvd's user avatar
  • 35
1 vote
1 answer
274 views

I am trying to understand this linux DMA driver I am compiling it for this kernel On compilation, I am getting the error: drivers/dma/msgdma/msgdma.c:342:25: error: implicit declaration of function ‘...
K606's user avatar
  • 23
1 vote
0 answers
65 views

I am writing a kernel module which makes some low level experiments, and I've noticed that the HW prefetcher is intrupting them. I want to disable it while the experiemnts run. I am running on Pixel 8 ...
Gal Kaptsenel's user avatar
2 votes
1 answer
233 views

I'm working on a Linux kernel driver that allocates memory with dma_alloc_coherent() and maps it to userspace using mmap. This works perfectly on kernel 4.18 (tested on 4.18.0-553.47.1.el8_10.x86_64), ...
Michele's user avatar
  • 153
0 votes
0 answers
118 views

I am trying to build "Hello, World" kernel module on Ubuntu 22.04 with Linux Kernel 6.1.25. However, when I run make, I encounter the following errors related to AddressSanitizer (ASan): ...
skm's user avatar
  • 43
2 votes
0 answers
110 views

I have a kernel module that does encryption/decryption using Linux Kernel Crypto API. This is my encryption function. int aes_enc(char *plaintext, int len, char *_key, char *_iv, int type) { ...
synthrax's user avatar
0 votes
1 answer
58 views

I have a kernel module that is processing packets. I have one tasklet that is running and will read from a list that has a spin_lock. There is a workqueue that is also reading from the same list. ...
RookieBeotch's user avatar
2 votes
1 answer
103 views

I have an out-of-tree Linux kernel module (for Intel x86_64). Its source code files are compiled into .o object files, which are then linked into the kernel .ko loadable file using the standard ...
Grigory Rechistov's user avatar
1 vote
0 answers
60 views

I am writing a krenel module that allocates some virtual executable memory. The module should write some code into the allocated page, call it, and afterwards return to my code. I am working on a ...
Gal Kaptsenel's user avatar
0 votes
0 answers
263 views

I am working on a kernel module, after insmod I got such errors in dmesg: [ 5839.116224] mcswap: disagrees about version of symbol rdma_leave_multicast [ 5839.116234] mcswap: Unknown symbol ...
id_17's user avatar
  • 13
0 votes
1 answer
432 views

I try to implement my own Linux driver for a reserved-memory area. I following on this description: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841683/Linux+Reserved+Memory The memory ...
moudi's user avatar
  • 538
0 votes
0 answers
43 views

I tried to use do_madvice() and MADV_FREE in the Linux Kernel module, but sometimes the following errors were reported. I want to know: whether I used the function correctly in this way? how to avoid ...
Mia8Cew's user avatar
1 vote
0 answers
66 views

Requirement is to have eth0 to wlan0 forwarding, so that eth0-connected device has Internet connection. I have enabled the forwarding, did the nat and iptables setup and ping from eth0 to Internet ...
smiljanic997's user avatar
0 votes
1 answer
170 views

I'm developing a module in the common area of the kernel, but from the vendor area (module) I need to access some registering functions in the common area. I saw that the functions from common area ...
uraganu1's user avatar
0 votes
1 answer
266 views

I need a fast async channel to transfer data from my kernel module to a userspace app. I tried IO_URING. As far as I am concerned, the way its submissions are handled in the kernel is a black box, ...
Vladislav's user avatar
1 vote
0 answers
100 views

Linux Kernel Module: how to allocate a buffer (meant to be used by mmap) with kzalloc and GFP_DMA? On kzalloc, the doc is skinny: https://www.kernel.org/doc/html/v5.0/core-api/mm-api.html#c.kzalloc. I ...
fghoussen's user avatar
  • 599
1 vote
0 answers
47 views

Can a Linux Kernel Module read safely a user space command (i.e. user buffer)? I know kernel and user space are different: user memory can not be executed from kernel space and vice-versa. I wrote ...
fghoussen's user avatar
  • 599
2 votes
1 answer
527 views

I am trying to do some Linux Kernel programming with CLion. I observe that some headers, like <linux/kernel.h> and <linux/module.h> are correctly recognized, but some others, like <...
G. Ianni's user avatar
  • 179
0 votes
0 answers
34 views

I want to implement a feature through a kernel module, and I hope to achieve this functionality only by providing the *.ko file, making it effective on machines with different kernel versions through ...
Frontier_Setter's user avatar
0 votes
1 answer
552 views

I am trying to write a simple Linux kernel module to read the temperature from the thermal_zone0 of my RaspberryPi 4B running RaspberryPi OS 64-bit. I can always do cat /sys/class/thermal/...
thapro's user avatar
  • 1
1 vote
0 answers
69 views

So I want to have a buffer in my kernel module that I created like that: static char buf[BUF_LEN]; My problem is that the start address of this buffer is not necessarily page aligned. To give a bit ...
Pinko's user avatar
  • 79
2 votes
1 answer
204 views

I'm writing a very simple linux kernel driver for my serial keyboard, employing serdev. The driver works and the function static size_t serdev_keyboard_recv(struct serdev_device *serdev, ...
Victor Modamio's user avatar

1
2 3 4 5
47