----- Ursprüngliche Mail ----- >>> First of all, your driver is apparently not reacting on the close >>> request that it receives in that case. This leads the the stall you see. >> >> Huh? rmmmod triggers close of what? >> *confused* >> > > rmmod -> module cleanup -> rtdm_dev_unregister -> rtdm_device_flush_fds
Sure. The driver has a close method where it cleans up everything, of course. But it can't force userspace to close the fd, Linux has no fd revocation mechanism. >>> Still, we could indeed run some module_put/get on open/socket/close. I >>> thought we did, but that was once RTnet [1]. >> >> Yes. Would be nice. :-) >> > > Just like a patch would be... Pushed to my TODO... Thanks, //richard