Questions tagged [linux-kernel-headers]
17 questions
4
votes
0 answers
Manual pages for Linux kernel development?
I am taking an operating system course that requires making modifications to the Linux kernel. I would like to be able to view concise information on functions like proc_create, macros like __init , data types like struct proc_dir_entry and so on,…

user129393192
- 797
- 1
- 8
1
vote
0 answers
Kernel Header Mismatch Issue on Raspberry Pi
I am experiencing an issue with a kernel header mismatch on my Raspberry Pi device running Debian GNU/Linux 11 (bullseye). The system is currently operating with kernel version 5.13.19-v8+, however, the available headers appear to be for version…

pulli030
- 11
- 2
1
vote
1 answer
How to install raspberry pi kernel headers of which version matches with $(uname -r) version
Title
I want to install raspberry pi kernel headers of which version matches with $(uname -r) version because I'll develop kernel modules on Raspberry Pi.
Description
I tried to execute sudo apt install raspberrypi-kernel-headers, but the header…

Horiemon_Hack
- 25
- 1
- 4
1
vote
0 answers
Accessing Linux kernel structure
I'm trying to copy_to_user kernel structure dm_dirty_log in custom syscall(educational task).
I learned some Linux kernel code and found the header where it declared, but I can't understand if it exists only in the stack or this structure is…

Андрей Крюков
- 11
- 2
1
vote
2 answers
Installing kernel headers packages missing error
I am trying to install kernel-headers but getting this error
E: Unable to locate package linux-headers-5.9.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-5.9.0-kali1-amd64'
E: Couldn't find any package by regex…

user786
- 3,902
- 4
- 40
- 72
0
votes
1 answer
Displaylink fails to install on Linux Kernel 6.2
How to install the displaylink driver for D6000 over kernel headers v6.2?
After an automatic upgrade to the new kernel headers v6.2, I was not able to reinstall the official displaylink driver v5.6.0 (to get Dell Docking Station D6000 to work)…

weshouman
- 632
- 9
- 17
0
votes
0 answers
Are there any kernel or libc headers that deal with detecting the boot type?
I am currently reading /proc/cmdline to determine a device's boot reason. Currently, I am using Android's Canonical Boot Reason from the bootloader to determine why the device booted. I just read the values for androidboot.bootreason,…

Bret Joseph
- 401
- 3
- 13
0
votes
1 answer
why my bpftrace program can not run on linux kernel version 4.18
/* FILENAME: vfs_open.bt */
#include
#include
kprobe:vfs_open
{
printf("open path: %s\n", str(((struct path *)arg0)->dentry->d_name.name));
}
Since struct path and struct dentry are defined in the path.h and…

jiufei19
- 1
- 1
0
votes
0 answers
Docker build copying wrong linux kernel headers
I have two linux kernels installed on my machine: 5.15.0-52-generic and 5.15.73-rt52. The rt52 kernel is a kernel patched with PREEMPT_RT. When I boot into the PREEMPT_RT patched kernel and build a docker image, only the headers for…

Alqio
- 452
- 1
- 5
- 15
0
votes
0 answers
Cannot find cp210x module on my custom made IoT Debian Linux distro
I'm trying to test a SOM made by Variscite (VAR-SOM-6UL). On their website they have a precompiled Debian buster image. Unfortunately the cp210x module is not present on this image. This library automatically transforms a USB into UART channel. I…

Joseph
- 1
0
votes
0 answers
No kernel header files in `5.10.0-rc1-sev-es+`, despite installing `linux-headers-`uname -r`
I am running a Debian 9 at kernel version 5.10.0-rc1-sev-es+. The directory /lib/modules/5.10.0-rc1-sev-es+/build (which I need for compiling kernel modules) does not seem to exists. However, when I run sudo apt-get install linux-headers-$(uname -r)…

cryptobeginner
- 187
- 5
0
votes
0 answers
What is the purpose of RH_KABI_REPLACE_SPLIT?
I'm trying to build ClearCase MVFS kernel module under CentOS 8, kernel 4.18.
The build failed because the code references struct task_struct.state (from linux/sched.h). This member exists in vanilla kernels up to 5.13. In the CentOS kernel, is has…

Jörg Weichelt
- 1
- 2
0
votes
1 answer
User kernel module "not found in directory"?
I did a simple Linux kernel module. I can install the module temporarily via sudo insmod my_module.ko and use it.
But I tried and failed to load the module at boot time:
copied it to…

Danijel
- 8,198
- 18
- 69
- 133
0
votes
0 answers
Can I install linux headers package as non-root?
Ubuntu 20.04 - is it possible to install the Linux headers package as non-root? Perhaps to a different directory under $HOME somewhere?
The reason for asking is I would like to have an Jenkins job that periodically fetches and, if necessary,…

Steve Folly
- 8,327
- 9
- 52
- 63
0
votes
0 answers
Linux nfs client kernel module compilation and insmod failing
I am trying to make changes in the nfsv3 client fs kernel module in linux. I am able to compile the kernel modules.
sureshbabu@sureshbabu-virtual-machine:~/linux-hwe-5.11-5.11.0$ make -C . M=./fs/nfs
make: Entering directory…

suresh
- 4,084
- 10
- 44
- 59