LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-18-2010, 12:53 AM   #1
linuxkiddie
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu 9.4
Posts: 4

Rep: Reputation: 0
Question insmod: getting "KIlled" message while inserting kernel module


hi,
i created a sample module and while trying to insert it i am getting the message "Killed". But when I did lsmod my module was listed out there and was 'Used by' 1. Maybe because it is in use I cannot do a rmmod on my module. How to overcome this, that is do a rmmod while it is still in use?
 
Old 05-18-2010, 02:51 AM   #2
brainz1977
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 1
Hi,

might be worth trying

modprobe -r

or

modprobe -rf

instead of rmmod, also there could be a service that uses the 'in use' module you may have to stop that first then try to remove it.

HTH
 
Old 05-18-2010, 08:16 AM   #3
linuxkiddie
LQ Newbie
 
Registered: May 2010
Location: Bangalore
Distribution: Ubuntu 9.4
Posts: 4

Original Poster
Rep: Reputation: 0
ok..i will try using modprobe.
pl tell me this also.. how to know which service is using the current module and how to stop it from using that module?
 
Old 05-18-2010, 10:46 AM   #4
brainz1977
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 1
lsmod

Certainly - if the modprobe doesn't work then post the output of your lsmod and highlight the module you are having the problem with i should be able to tell, some are obvious from their name others require a bit of digging around. eg. on my system if i had the problem trying to remove the ip_tables module (for example) :

lsmod

ip_tables 21953 4 iptable_raw,iptable_mangle,iptable_nat,iptable_filter

I would run:

/etc/init.d/iptables stop

then

modprobe -r ip_tables

Hope this makes sense, usually the modprobe -r removes the module and its dependants.
 
  


Reply

Tags
kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error "invalid module format" and "insert kernel module"? shayori Linux - Newbie 8 02-25-2010 03:48 AM
find history of a job killed by "kernel: Out of Memory: Killed process" poulacou Linux - Server 3 09-20-2007 04:24 PM
valgrind crashes at start up with "Killed" error message lasindi Slackware 0 04-22-2006 08:54 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 09:15 PM
Compiling a kernel module results in "insmod" version mvega Linux - General 2 07-30-2003 09:03 AM


All times are GMT -5. The time now is 10:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration