From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 3 Jul 2020 08:22:51 +0200 (CEST) From: Richard Weinberger Message-ID: <1684715583.86100.1593757371692.JavaMail.zimbra@nod.at> In-Reply-To: <77dc555e-10dd-8e05-0770-1f1f673259fd@siemens.com> References: <77dc555e-10dd-8e05-0770-1f1f673259fd@siemens.com> Subject: Re: RTDM module ownership MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Richard Weinberger , xenomai ----- Urspr=C3=BCngliche 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. >>=20 >=20 > 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* =20 > 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. :-) Thanks, //richard