From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 17 Dec 2014 11:29:10 +0100 From: Gilles Chanteperdrix Message-ID: <20141217102910.GA7151@hermes.click-hack.org> References: <5490C06F.4080901@nta-inc.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5490C06F.4080901@nta-inc.net> Subject: Re: [Xenomai] rtnet issue with xenomai-3.git next branch List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Webb Cc: Xenomai On Tue, Dec 16, 2014 at 05:29:51PM -0600, Jeff Webb wrote: > I am testing the rtnet functionality in the 'next' branch of xenomai-3.git. (I now also have Xenomai-2.6.4/rtnet.git running on the same machine for comparison.) I am able to bring up the real-time interface (rt_e1000e) and use rtping as expected. As mentioned before, I have a primary non-rt ethernet interface running simultaneously (using the e1000e driver). When I try to remove all the rtnet modules, I am unable to remove rtnet and rtipv4: > > $ rmmod rtipv4 rtnet > rmmod: ERROR: Module rtipv4 is in use > rmmod: ERROR: Module rtnet is in use by: rtipv4 > > The messages are the same if I try to remove them individually. This behavior does not occur with Xenomai-2.6.4/rtnet.git. To avoid nasty side effects, every module which registers an interface (whether rtnet or linux interface) now requires the interface to be down before the module can be removed. The handling of rtnet module counts was significantly reworked when importing into 3.x, it is possible that some bug remains. > > I also have issues when I try to load the rtudp and/or rtpacket modules: > > $ sudo modprobe rtnet > $ sudo modprobe rtipv4 > $ sudo modprobe rtpacket > modprobe: ERROR: could not insert 'rtpacket': Invalid argument > $ sudo modprobe rtudp > modprobe: ERROR: could not insert 'rtudp': Invalid argument > > I thought that this triggered an I-pipe trace in the past, but I > can't reproduce that at the moment. The 'Invalid argument' error > code is coming from rtdm_dev_register, right? It comes from the module insertion function. I thought I had tried inserting these modules, but maybe I did not, I will try on my side. -- Gilles.