insmod tries to link a module into the running kernel by resolving all symbols from the kernel's exported symbol table.
Questions tagged [insmod]
81 questions
0
votes
0 answers
Get Output of system("insmod mmodule.ko")
I want to run shell command in C program and get stdout output.
I did it in this function:
int run_shell_cmd_nout(const char* cmd)
{
FILE *fp;
char out[4096] = {0};
char str[256] = {0};
char full_cmd[1024] = {0};
int…

GurniHelek
- 13
- 2
0
votes
3 answers
Add insmod Kernel HID module
I made certain modifications in hid module.
I can make it and load (insmod) it on kernel v 2.6.27.14 sucessfully
Now I am willing to load the same kernel module on kernel v 2.6.27.11
As there is no differance in the kerbel source files for both the…

Madni
- 143
- 1
- 4
- 16
-1
votes
1 answer
insmod: ERROR: could not insert module: Protocol wrong type for socket
insmod nf_nat_ipv4.ko, but this returns the error:
insmod: ERROR: could not insert module: Protocol wrong type for socket
no logs in dmesg.
The OS doesn't have iptables installed. But insmod works for nf_conntrack, nf_nat .
Any advice will be much…

No9527
- 31
- 9
-1
votes
2 answers
Kernel module load causes bug
i am new with kernel modules development and have decided to write my first kernel module today.
my module is supposed to receive 2 numbers as input, seperated by a whitespace and have those numbers added together.
the kernel module communicates via…

Oryan Perlmutter
- 9
- 3
-2
votes
1 answer
Concept of modprobe and module dependancies
As modprobe looks through modules.dep for dependancies,is it necessary to execute depmod before modprobe?plz help me with module inserting process

sonny
- 13
- 3
-3
votes
1 answer
kernel module problem in commercial software
The security software I'm building contains a kernel module.
because the kernel must process the packet.
Do not use DKMS because it is commercial software.
If the kernel version goes up, insmod doesn't work.
What should I do? Do you have a good…

jyh
- 1