* traversing module trees
@ Jacob Schmude
` David Csercsics
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Schmude @ UTC (permalink / raw)
To: speakup
Hi all
Is ther a way of removing one module and having the kernel remove
all the modules associated with it? An example, if I do:
rmmod usbcore
I'd like all the other USB modules to be unload before usbcore is.
Can this be accomplished? I'm working with kernel 2.6.6.
THX
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: traversing module trees
traversing module trees Jacob Schmude
@ ` David Csercsics
` Jacob Schmude
0 siblings, 1 reply; 3+ messages in thread
From: David Csercsics @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux., Jacob Schmude
>Hi all
> Is ther a way of removing one module and having the kernel remove
>all the modules associated with it? An example, if I do:
>rmmod usbcore
Try modprobe -r usbcore. That will do what you want and if you have
forced module unloading in your kernel it will even ignore module
dependencies.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: traversing module trees
` David Csercsics
@ ` Jacob Schmude
0 siblings, 0 replies; 3+ messages in thread
From: Jacob Schmude @ UTC (permalink / raw)
To: David Csercsics; +Cc: Speakup is a screen review system for Linux.
Hi
modprobe -r didn't work. It simply said the module was in use.
What I want is a way to figure out what modules are using that, unload
them, then unload the module I specified. If I had to compare it to
anything, it would be an apt-get remove operation. You do apt-get remove
xlibs and all the packages that depend on xlibs, and all packages that may
have depended on those, are removed as well. This is what I want for
modules, and looking through lsmod output manually won't work, since I
need to do this in a script which will eventually be used for ACPI's
suspend feature. I've looked on google but haven't found anything. Any
ideas? I don't want module dependencies ignored, I want them followed.
On Thu, 17 Jun 2004, David Csercsics wrote:
DC> >Hi all
DC> > Is ther a way of removing one module and having the kernel remove
DC> >all the modules associated with it? An example, if I do:
DC> >rmmod usbcore
DC>
DC> Try modprobe -r usbcore. That will do what you want and if you have
DC> forced module unloading in your kernel it will even ignore module
DC> dependencies.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
traversing module trees Jacob Schmude
` David Csercsics
` Jacob Schmude
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 read-only IMAP folder(s) and NNTP newsgroup(s).