RTDM module ownership

Jan Kiszka jan.kiszka at siemens.com
Fri Jul 3 11:10:41 CEST 2020


On 03.07.20 08:22, Richard Weinberger wrote:
> ----- Urspr√ľngliche Mail -----
>>> In contrast, on regular Linux rmmod will refuse to unload the module
>>> if the device node is still open because fops_get() or other helpers
>>> gained a reference on the owner.
>>>
>>
>> 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

>> 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...

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list