can't rmmod cfi_cmdset_0002
Galen Seitz
galens at seitzassoc.com
Fri May 10 04:16:31 EDT 2002
In the course of hacking on pci.c, I've encountered an issue with removing
the cfi_cmdset_0002 module. It seems that once I have successfully
loaded the pci module, I can't unload the cmdset module. Is it likely
that I have created this problem? How does one go about tracking
down a problem like this?
thanks,
galen
oz:~# cat /proc/version
Linux version 2.4.19-pre8 (galens at oz.seitzassoc.com) (gcc version 2.96
20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu May 9 13:48:33 PDT 2002
oz:~# /sbin/modprobe -a mtdchar mtdblock cfi_cmdset_0002 map_rom cfi_probe
oz:~# /sbin/lsmod
Module Size Used by
cfi_probe 7424 0 (unused)
gen_probe 1712 0 [cfi_probe]
map_rom 688 0 (unused)
chipreg 704 0 [cfi_probe map_rom]
cfi_cmdset_0002 15616 0 (unused)
mtdblock 4608 0 (unused)
mtdchar 4064 0 (unused)
mtdcore 2176 0 [mtdblock mtdchar]
3c59x 24928 1
rtc 6016 0 (autoclean)
oz:~# /sbin/rmmod mtdchar mtdblock cfi_cmdset_0002 map_rom cfi_probe
oz:~# /sbin/lsmod
Module Size Used by
gen_probe 1712 0
chipreg 704 0
mtdcore 2176 0
3c59x 24928 1
rtc 6016 0 (autoclean)
oz:~# /sbin/modprobe -a mtdchar mtdblock cfi_cmdset_0002 map_rom cfi_probe
oz:~# /sbin/modprobe -a pci
oz:~# /sbin/lsmod
Module Size Used by
pci 2880 0 (unused)
cfi_probe 7424 0
map_rom 688 0 (unused)
cfi_cmdset_0002 15616 2
mtdblock 4608 0 (unused)
mtdchar 4064 0 (unused)
gen_probe 1712 0 [cfi_probe]
chipreg 704 0 [pci cfi_probe map_rom]
mtdcore 2176 1 [pci mtdblock mtdchar]
3c59x 24928 1
rtc 6016 0 (autoclean)
oz:~# /sbin/rmmod pci
oz:~# /sbin/rmmod mtdchar mtdblock cfi_cmdset_0002 map_rom cfi_probe
cfi_cmdset_0002: Device or resource busy
oz:~# /sbin/lsmod
Module Size Used by
cfi_cmdset_0002 15616 1
gen_probe 1712 0
chipreg 704 0
mtdcore 2176 0
3c59x 24928 1
rtc 6016 0 (autoclean)
More information about the linux-mtd
mailing list