rmmod issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

programming kernel modules, I struggled quite often over a problem
when unloading modules:  Sometimes, rmmod hangs.  When I kill rmmod
the to-be-unloaded module remains in there but with size of zero:
# lsmod
[...]
ip_conntrack               0   0  (deleted)
[...]
# rmmod ip_conntrack
rmmod: module ip_conntrack is not loaded
# lsmod
Module                  Size  Used by    Tainted: P  
[...]
ip_conntrack               0   0  (deleted)
[...]

However, when I try to insmod the module again:
# insmod ip_conntrack
Using /lib/modules/2.4.17/kernel/net/ipv4/netfilter/ip_conntrack.o
insmod: a module named ip_conntrack already exists

I assume that it is my mistake that the module cannot be unloaded.
However, is there a way to enforce insmod to re-insert the module?

Thanks for any help,

Lukas
-- 
Lukas Ruf                        Swiss Federal Institute of Technology
Office: ETZ-G61.2                             Computer Engineering and
Phone: +41/1/632 7312                        Networks Laboratory (TIK)
Fax:   +41/1/632 1035                                      ETH Zentrum
PGP 2.6: ID D20BA2ED;                                    Gloriastr. 35
Fingerprint 6323 B9BC 9C8E 6563  B477 BADD FEA6 E6B7    CH-8092 Zurich
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux