I prepared an IOCTL to simulate the removable media to the kernel.
When the applications issues IOCTL, it removes the device from the
kernel space.
when I issue #ls /mnt (mount point) ( i.e. after the application issues
the IOCTL) the CONSOLE crashes, OR it crashes when tried to unload the
module.
How did you mount it? I mean, did you try to mount some FS. If yes, which
FS? I tried opening device (as in your application without mounting) and it
works well i.e first time device opens and second time onward it fails to
open (and system continue to be up).
Regards,
Mohanlal
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/