Questions tagged [insmod]

insmod tries to link a module into the running kernel by resolving all symbols from the kernel's exported symbol table.

81 questions
3
votes
1 answer

Not able to insmod or use inter-kernel module(s)

I have a function in kernel driver 1 (KD1.ko): static void test (void); EXPORT_SYMBOL(test); static void test() { printk("<<< MISSION DONE >>>.\n"); } In Kernel driver 2 (KD2.ko): extern static void test (void); which I tried to call it. I…
3
votes
2 answers

Is there a way to get Splint or a similar static checker to work with Linux Kernel modules?

I compiled ( no warnings ) the hello-5.c example from "The Linux Kernel Module Programming Guide" and when I tried to insmod it, I received the following error: insmod: error inserting 'hello-5.ko': -1 Unknown symbol in module I thought I would try…
Robert S. Barnes
  • 39,711
  • 30
  • 131
  • 179
2
votes
0 answers

"insmod: invalid module format" when trying to use operaFS

I want to build and install the Linux filesystem driver OperaFS. After compiling the source codes, "insmod" shows the error message "module invalid format", although I did download the package "linux-source", so I expect that the source is the…
Daniel Marschall
  • 3,739
  • 2
  • 28
  • 67
2
votes
0 answers

What calls wm8350_i2c_probe() in wm8350-i2c.c?

I'm writing a multi-function kernel driver module, based on http://lxr.free-electrons.com/source/drivers/mfd/wm8350-i2c.c?v=4.4 and http://lxr.free-electrons.com/source/drivers/mfd/wm8350-core.c?v=4.4 I am confused as to how/when/why the…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
2
votes
1 answer

In which folder should I add the .ko file I compiled?

So I have compiled the driver for my USB wireless adapter. Now I need to know where I should copy the .ko file to. The question is really the following: What is the difference between /lib/modules/(uname -r)/build and /lib/module/(uname…
Yuri Borges
  • 315
  • 4
  • 14
2
votes
0 answers

insmod: cannot insert './intrpt.ko': Function not implemented

I'm writing a kernel module that receives interrupts for mpc8308 (PowerPC) board. when I make the code for Ubuntu and my current version of kernel it works well with interrupt of keyboard, but when I Cross build it for mpc8308 board (2.6.29.6…
AVM
  • 106
  • 2
  • 7
2
votes
1 answer

Kernel module periodically calling user space program

I want to call a user space program from a kernel module periodically.But the kernel program is freezing the system, while I try to load it. following is the program, #include /* Needed by all modules */ #include…
BusyTraveller
  • 183
  • 3
  • 14
2
votes
0 answers

Error in reading a file Within linux module

Edit: I have written following module to filter websites.I am able to sniff DNS Packet(question field Domain Name) requested by User and compare with block[]="www.facebook.com". If matched, drop the packet.Now I inserted a read code (see after…
user55111
  • 322
  • 1
  • 3
  • 12
2
votes
1 answer

Linux modules version error "Invalid module format"

I made Linux external module and because my module need Linux kernel symbol, I set the Modversion config and make it.(also did make modules_install) My module was made exactly in lib/modules/(my linux)/extra/ But when I insert my module, shell…
nicelhc13
  • 129
  • 1
  • 1
  • 5
2
votes
2 answers

insmod in android lollipop with SE Linux enforced

I am trying to perform insmod abc.ko with a few module params, However these module params need to be dynamically computed. So I am launching an app /system/bin/my_app to compute these params and then perform insmod within my_app. Issue: When my_app…
2
votes
1 answer

character device implementation for generating random numbers

Based on my accademic project my current task is to generate 10 random numbers using a kernel module and my user space program(c program) should be able to display those numbers. I hav been learning about kernel space and user space programs. And i…
Krishna
  • 23
  • 5
2
votes
1 answer

how to create a /dev/entry after doing an insmod of a module

I have been provided a Linux kernel module with these instructions: insmod . Then determine the major number and create a /dev entry. I was able to successfully install as is evident from the dmesg file. However, I do not know how to determine the…
doon
  • 2,311
  • 7
  • 31
  • 52
1
vote
1 answer

insmod error, invalid module format, fedora 35

I'm attempting to learn about kernel modules and followed along with a simple hello world example. My computer is running fedora 35. When I run sudo insmod mymodule.ko i get the error insmod: ERROR: could not insert module mymodule.ko: Invalid…
McArthur
  • 31
  • 4
1
vote
0 answers

Debian cifs client suddenly break

Previously, Debian mounted win10 cifs worked fine. Suddenly prompted "input/output error" when accessing the cifs file See ls /proc/fs, cifs are missing Even the nfs server failed to start. I should not do anything to modify the system…
menglongwu
  • 33
  • 4
1
vote
0 answers

Unable to insert module to kernel

This is my introduction to kernel module. I'm following The Linux Kernel Module Programming Guide and just wrote my first simple module. This is my module file hello.c; /* * hello.c − The simplest kernel module. */ #include
Naila Akbar
  • 3,033
  • 4
  • 34
  • 76