From: asharma.es@gmail.com (Abhishek Sharma)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to prevent a module from unloading when in used
Date: Wed, 16 Jul 2014 22:40:32 +0530 [thread overview]
Message-ID: <53C6B208.6010201@gmail.com> (raw)
In-Reply-To: <CAPrYoTFxYAmLybA6wVwkdnvELSkps9upz-SR=kQtfQRPwdKo2w@mail.gmail.com>
Hi,
Is their some special reason for not using "rmmod" to unload module?
rmmod will remove only the module which it is told to remove.
Regards,
Abhishek Sharma
On Wednesday 16 July 2014 04:00 PM, Chetan Nanda wrote:
> Hi,
>
> I am facing an issues with module unloading,
> I have two modules say A, B
>
> A depends on B, so B is automatically loaded when A is loaded.
> B module is also directly being used by the user side code via misc
> interface.
>
> 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.
>
> Also, lsmod ouput shows driver B is not used by anybody. Seems "Used
> By" of lsmod output is not getting updated.
>
> How to prevent unloading of module B in used. When unloading module
> 'A' via modprobe -r
>
> Thanks,
> Chetan Nanda
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2014-07-16 17:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPrYoTHfEqU_8QRJKzY3gwF50JHB_b+QRc=u9MCM_A+mAsRw1A@mail.gmail.com>
2014-07-16 10:30 ` How to prevent a module from unloading when in used Chetan Nanda
2014-07-16 13:09 ` John de la Garza
[not found] ` <CAPrYoTHQFqqbskarb6RJjzZdcBiDCSFvc3uZwhOyzi5Y0a82NA@mail.gmail.com>
2014-07-16 15:27 ` Chetan Nanda
2014-07-16 16:21 ` Greg KH
2014-07-18 4:13 ` Chetan Nanda
2014-07-18 4:17 ` Greg KH
2014-07-18 6:29 ` Chetan Nanda
2014-07-21 3:39 ` Chetan Nanda
2014-07-21 4:22 ` Greg KH
2014-07-21 4:50 ` Chetan Nanda
2014-07-21 18:42 ` Greg KH
2014-07-16 17:10 ` Abhishek Sharma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C6B208.6010201@gmail.com \
--to=asharma.es@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).