[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Iwo Mergler <Iwo.Mergler@soton.sc.philips.com>] (fwd)



>From owner-rtl Fri Jun  1 04:28:17 2001
Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f51ASGs16374
	for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 04:28:16 -0600
Received: from smtpscan-nl2.philips.com (localhost.philips.com [127.0.0.1])
          by gw-nl4.philips.com with ESMTP id MAA27412
          for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 12:23:00 +0200 (MEST)
          (envelope-from Iwo.Mergler@soton.sc.philips.com)
Received: from smtpscan-nl2.philips.com(130.139.36.22) by gw-nl4.philips.com via mwrap (4.0a)
	id xma027410; Fri, 1 Jun 01 12:23:00 +0200
Received: from smtprelay-nl1.philips.com (localhost [127.0.0.1]) 
	by smtpscan-nl2.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id MAA16866
	for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 12:22:59 +0200 (MET DST)
Received: from kilkenny.soton.sc.philips.com (mailgate.soton.sc.philips.com [130.141.89.1]) 
	by smtprelay-nl1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id MAA24577
	for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 12:22:59 +0200 (MET DST)
Received: from scorpion.soton.sc.philips.com (root@[130.141.7.31])
	by kilkenny.soton.sc.philips.com (8.11.3/8.11.3) with ESMTP id f519c8v06352
	for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 10:38:08 +0100
Received: from soton.sc.philips.com (calders [130.141.7.59])
	by scorpion.soton.sc.philips.com (8.9.3/8.9.3) with ESMTP id LAA24581
	for <rtl@fsmlabs.com>; Fri, 1 Jun 2001 11:22:58 +0100 (BST)
Sender: mergler@soton.sc.philips.com
Message-ID: <3B176D02.E50AA4B6@soton.sc.philips.com>
Date: Fri, 01 Jun 2001 11:22:58 +0100
From: Iwo Mergler <Iwo.Mergler@soton.sc.philips.com>
Reply-To: Iwo.Mergler@soton.sc.philips.com
Organization: Philips Semiconductors
X-Mailer: Mozilla 4.51 [en] (X11; I; HP-UX B.11.00 9000/785)
X-Accept-Language: en
MIME-Version: 1.0
To: rtl@fsmlabs.com
Subject: Re: [rtl] Can't Unload Modules - "in use"
References: <0560141A7916D211A64A00A0C9C9A81501949BBF@nwms15.chinalake.navy.mil>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Estabridis, Janet P" wrote:
> 
> Hi,
> Sorry I am not at my machine to get the exact message and I haven't gotten
> to check the archives, but I figure someone can steer me in the correct
> direction.
> 
> I am using RTLV2.3 with kernel 2.2.14
> 
> I have four modules, three of them just contain routines that the main
> modules calls.
> 
> bit.o
> vig.o
> tspi.o
> rt_main.o
> 
> When I try and remove the modules with "rmmod" I get that it can't be
> removed because the modules are in use.  I use "lsmod" and try and remove
> them in the correct order, but still it won't let me remove any of them.  I
> have to re-boot.
> 

You could keep a backdoor open, either via /proc or maybe 
a timeout to run this code when needed:

while (MOD_IN_USE) MOD_DEC_USE_COUNT;

This resets the usage counter and should allow you 
to remove the module.

Regards,

Iwo