10 More Discussions You Might Find Interesting
1. IP Networking
Hello :
I want to make a netfilter conntrack module for myself. So I copy all the source code about netfilter conntrack from kernel source tree to my external directory. It can be insmod after compiled. Then I add some members to the struct nf_conn, and it 's compiled successfully. However, it... (1 Reply)
Discussion started by: 915086731
1 Replies
2. Programming
Hi, I'm pretty new to kernel coding and I'm working on a device driver that works with an existing framework.
Basically my module will be loaded/unloaded multiple times and I'd like to create a register a class, driver, and create a /dev node on the first load only. The existing framework... (0 Replies)
Discussion started by: ThomasBrez
0 Replies
3. UNIX for Dummies Questions & Answers
When I try to insert a simple kernel module I get the following error
> insmod: error inserting 'test.ko': -1 Invalid module format
> in dmesg I see:
disagrees about version of symbol module_layout
I have following kernel which I downloaded using apt-get:
uname -r
2.6.32-24-generic
... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
4. UNIX for Dummies Questions & Answers
I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org.
The module gets built.
While loading a kernel module I am getting Invalid module format error with description "first_driver: no symbol version for module_layout"
The... (5 Replies)
Discussion started by: rupeshkp728
5 Replies
5. Ubuntu
I have built kernel 2.6.35 on my Ubuntu system with some specific requirement. I also built some app defined module with the same kernel. I booted up the built version and I find it did not work properly as there is some gui and other modules missing problem. But the system booted up and I did... (0 Replies)
Discussion started by: sunilsukumar4u
0 Replies
6. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
7. UNIX for Dummies Questions & Answers
Hi Everyone,
I am relatively new to Linux. After about three months of trying to compile a driver for a ESDCAN card, I finally found a version and kernel that worked. I am running Slackware V12.0 with kernel version 2.6.24.5-smp. When I use insmod to insert the driver file (esdcan-pci331.ko),... (1 Reply)
Discussion started by: Brian-UOIT
1 Replies
8. UNIX for Dummies Questions & Answers
If we need to add a .ko file to your kernel. What we do is use insmod every time you boot. But if we would like it to load at boot automatically, what would we do? (0 Replies)
Discussion started by: anupa
0 Replies
9. Programming
I'm using Linux-2.6.14. My application is having one kernel module of large size(approx 8MB), insmoding of that kernel module is taking pretty much time(approx 8Mins). Is there a way to reduce the insmod time? I tried even by modprobe also. (0 Replies)
Discussion started by: ptprabu
0 Replies
10. Shell Programming and Scripting
Hello,
By now in linux 2.4, I have a sh script wich start 2 modules as follow :
/sbin/insmod module1.o
/sbin/insmod module2.o
I added an application in user space named "user_app" which communicate with module1 with a /proc.
I now tape the commands myself during code execution on a... (1 Reply)
Discussion started by: crip01
1 Replies
RMMOD(8) rmmod RMMOD(8)
NAME
rmmod - Simple program to remove a module from the Linux Kernel
SYNOPSIS
rmmod [-f] [-s] [-v] [modulename]
DESCRIPTION
rmmod is a trivial program to remove a module (when module unloading support is provided) from the kernel. Most users will want to use
modprobe(8) with the -r option instead.
OPTIONS
-v, --verbose
Print messages about what the program is doing. Usually rmmod prints messages only if something goes wrong.
-f, --force
This option can be extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With
this option, you can remove modules which are being used, or which are not designed to be removed, or have been marked as unsafe (see
lsmod(8)).
-s, --syslog
Send errors to syslog instead of standard error.
-V --version
Show version of program and exit.
COPYRIGHT
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others.
SEE ALSO
modprobe(8), insmod(8), lsmod(8), modinfo(8)
AUTHORS
Jon Masters <jcm@jonmasters.org>
Developer
Lucas De Marchi <lucas.de.marchi@gmail.com>
Developer
kmod 01/28/2018 RMMOD(8)