Questions tagged [kernel-module]

A kernel module is a run-time loadable object file that is loaded into operating system kernel to add functionality to a running kernel. Examples include device drivers and other kernel items.

2005 questions
0
votes
2 answers

Serial driver in userspace

Is it possible to write serial driver in userspace, yet, have the device appear as regular serial driver /dev/ttyS0 in the system ? The full story is that we have a pci express fpga, and there are several devices behind the pci express fpga:…
ransh
  • 1,281
  • 4
  • 20
  • 45
0
votes
1 answer

Poky-sumo : nothing provides kernel-module-hello... error

we are currently updating our poky environment to the sumo branch and one of our recipes that build a kernel module does not work anymore. I get the following error when building image rootfs : - nothing provides…
0
votes
1 answer

configuration file for kernel module

I learn how to write linux kernel drivers and now I would like to give user from userspace possibility to change behaviour of my modules (or any other subsystem / module). I would like to store any value (string list) in any type of configuration…
0
votes
0 answers

Building an old kernel module on latest kernel

CLNP ( Connection Less Network protocol ) was present as a loadable kernel module in 2.6.17.3 linux version. At that time it was not linked with Datalink layer and Application layer and so the project was not considered as complete. The project of…
0
votes
1 answer

Modifying the parameters before passing them to NtWriteFile after hooking the SSDT

I'm currently working on a lecture (and learning) about rootkits for Windows. I was able to hook the SSDT entry for NtWriteFile and display a simple message on WinDbg, but i'm now curious about what would be the best (and the safest) way of changing…
Thiago
  • 1
0
votes
1 answer

initramfs has no modules

I have proxmox containers. Host Debian 9, inside container Debian 8. I made image to migrate into VMWare. And now I need to build my initranfs. But if i run update-initranfs -u -v -k 4.9.0-0.bpo.8-amd64 it processed but doesn't copy modules. there…
Dees7
  • 23
  • 5
0
votes
1 answer

Can I load unsigned driver permanently in 64 windows

I am planning to get into windows driver development and start to learn windows wdk But I know that windows blocks loading unsigned drivers and I have to purchase a digital certificate but it's too expensive for me and I won't be developing drivers…
dev65
  • 1,011
  • 4
  • 17
0
votes
0 answers

cat a Linux kernel module device file but nothing output

I'm new to Linux kernel module development. I write a module that creates a device file which I can write data to and read data from. I am able to use echo to write data into it successfully but when I use cat to print data from it, nothing happens.…
0
votes
1 answer

c- kernel thread counter with spinlock

We were asked to create five kernel threads which increments the global counter one by one. I'm new to programming in kernel space so I had difficulty with doing this - specifically with dealing with the kernel threads and using spinlock. Here's my…
0
votes
1 answer

How to use flags while compiling Kernel Modules

I need to use some optimization and loop unrolling flags for my kernel module. But I don't know how to add these flags to the makefile. KMOD= hello # Name of KLD to build SRCS= hello.c # List of source files .include I tried to…
cRAYonhere
  • 47
  • 9
0
votes
1 answer

I cannot load the kernel of a Raspberry Pi and use modprobe afterward in order to use i2c_stub

I am trying to read from virtual sensors on a Raspberry Pi B3. I want to create the virtual sensors on the i2c port. The first thing I did was enable the i2c port of course. With the commands below I can see if the i2c interface is working: #…
Felipe
  • 3,986
  • 5
  • 29
  • 62
0
votes
1 answer

Usage bluetooth sockets in kernel module

I'm curious is there any possibility to make a bluetooth server in kernel module. I've seen udp server, but I need exactly a bluetooth one.
0
votes
1 answer

Linux Kernel module: printk message not where I expect to be in the buffer log

This question relates to a lab/homework assignment. We are asked to learn how to load and remove a kernel module, and then modify the C code in a kernel module that has been provided. We must define a struct that contains some elements to be…
Patch85
  • 3
  • 2
0
votes
1 answer

How to use XPS (Transmit Packet Steering) from Kernel module

My scenario requires: A Custom Loadable Kernel Module that composes packets(skbuffs) and tries to send them synchronously Intel I40e driver (extracted from kernel source tree kernel version 4.15.12) Custom Loadable Kernel Module My packet is not a…
0
votes
1 answer

Linux kernel module: BUG: unable to handle kernel paging request at 0000000080cb7fb8

I need to create linux kernel module that hooks some system calls. And with some calls I get strange error, for example with __NR_unlinkat (sys_unlinkat). The code of the module: #include #include #include…
Nadezhda
  • 11
  • 3
1 2 3
99
100