matt zagrabelny wrote:

hello,

i would like to remove a module. when i do "rmmod <module_name>" i get:

<module_name>: device or resource busy

is there a way to list processes that are using a module?




enjae[westk]:/home/westk> sudo lsmod Module Size Used by Not tainted r128 90232 0 ide-cd 26720 0 (autoclean) cdrom 29184 0 (autoclean) [ide-cd] af_packet 11816 0 (autoclean) via82cxxx_audio 18432 2 uart401 6144 0 [via82cxxx_audio] ac97_codec 9696 0 [via82cxxx_audio] sound 54508 0 [via82cxxx_audio uart401] soundcore 3620 5 [via82cxxx_audio sound]

Here you can see that the "via82cxxx_audio" module is being used by two other modules, and they are "uart401" and "ac97_codec". So to "rmmod via82cxxx_audio", I'd first have to "rmmod uart401" and "rrmod ac97_codec".

I believe that's the way it works. At any rate, I've rmmod'd stuff before, but had to rmmod other modules first; I'm just not exactly sure of the order/meaning of this list.

--
Kent West ([EMAIL PROTECTED])




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to