<div dir="ltr">Hi, <br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I am facing an issues with module unloading, </div><div>I have two modules say A, B<br></div><div><br></div><div>A depends on B, so B is automatically loaded when A is loaded. </div>
<div>B module is also directly being used by the user side code via misc interface. <br></div><div><br></div><div>Now when I am unloading module A, via "modprobe -r A" it is also unloading the module B which is being used by the application and resulting in the kernel crash.</div>
<div><br></div><div>Also, lsmod ouput shows driver B is not used by anybody. Seems "Used By" of lsmod output is not getting updated.</div><div><br></div><div>How to prevent unloading of module B in used. When unloading module 'A' via modprobe -r</div>
<div><br></div><div>Thanks,</div><div>Chetan Nanda</div></div>
</div><br></div>