login
Header Space

 
 

unable to remove block device driver module

August 25, 2008 - 7:15am
Submitted by prash.bhole on August 25, 2008 - 7:15am.
Linux

Hi,
I am using a code for a block device driver from following site:
http://www.kernel-labs.org/?q=blockdriver&PHPSESSID=0b5c36c40ec71ec1587f...

This code works fine. But when I try to remove that module using
rmmod, it says "Error: module bdev is in use".
Even if I insert the module and immediately try to remove it without
using it, I get the same error. Once add_disk() is called kernel tries
to read the partition table from that device, which is normal. I need
to reboot the machine every time whenever I have to try modified
module. I am not getting who is referring to that module.

Thanks.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <quote> <pre> <hr> <br> <p> <img> <blockquote> <font> <tt> <table> <tr> <i>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

speck-geostationary