I putthe following rtdm_printk functions in this function and the
rtdm_printk("\tEvent occured\n");
never is doner when a send messages to the receiveing network.
I don't know why.
static void rt_stack_mgr_task(void *arg)
{
rtdm_event_t *mgr_event = &((struct rtnet_mgr *)arg)->event;
struct rtskb *rtskb;
rtdm_printk("\tArrive to the rt_stack_mgr_task function\n");
while (rtdm_event_wait(mgr_event) == 0) {
/* we are the only reader => no locking required */
rtdm_printk("\tEvent occured\n");
while ((rtskb = __rtskb_fifo_remove(&rx.fifo)))
{
rtdm_printk("\trtskb removed from fifo\n");
rt_stack_deliver(rtskb);
rtdm_printk("\trtskb delivered\n");
}
}
rtdm_printk("\tGoing out from rt_stack_mgr_task function\n");
}
The first
rtdm_printk("\tArrive to the rt_stack_mgr_task function\n");
and the last
rtdm_printk("\tGoing out from rt_stack_mgr_task function\n");
are done in the starting and at the end of rtnet.
Any clues??
Jorge
Em Quinta, 28 de Setembro de 2006 19:31, o Jorge Almeida escreveu:
>
> Nothing appears in the messages file.
>
> Tomorrow i will debug the problem and say something.
>
> Jorge
>
> Em Quinta, 28 de Setembro de 2006 19:20, o Jan Kiszka escreveu:
> > Jorge Almeida wrote:
> > > Jan
> > >
> > > With the changes in the stack managersomething happen to the trask that distribute the several messages.
> > > It is not started when i load rtnet.
> > >
> > > Me test machine has the following modules inserted:
> > > Module Size Used by
> > > rtpacket 5120 0
> > > rtipv4 21664 0
> > > rtcap 16384 0
> > > rt_8139too 11904 6
> > > rtnet 30092 4 rtpacket,rtipv4,rtcap,rt_8139too
> > > rtai_rtdm 22176 4 rtpacket,rtipv4,rt_8139too,rtnet
> > > rtai_shm 8832 0
> > > rtai_sem 17664 2 rtnet,rtai_rtdm
> > > rtai_lxrt 74904 7 rtipv4,rtcap,rt_8139too,rtnet,rtai_rtdm,rtai_shm,rtai_sem
> > > rtai_hal 69840 8 rtcap,rt_8139too,rtnet,rtai_rtdm,rtai_shm,rtai_sem,rtai_lxrt
> > > sis900 19840 0
> > >
> > > and the /proc/rtai/names file has the following:
> > >
> > > RTAI LXRT Information.
> > >
> > > MAX_SLOTS = 150
> > >
> > > Linux_Owner Parent PID
> > > Slot Name ID Type RT_Handle Pointer Tsk_PID MEM_Sz USG Cnt
> > > -------------------------------------------------------------------------------
> > > 190 RTGLBF 0x9ac6d9e5 SHMEM 0xe09f1000 0x00000000 0 2097152 1
> > > tester1:/home/nfs_share/rtnet #
> > >
> > > it should have several semaphores and at least a task for rtnet.
> > > When i run the example that i send to you several days ago, just the sending part the file has
> > > tester1:/home/nfs_share/rtnet # cat /proc/rtai/names
> > >
> > > RTAI LXRT Information.
> > >
> > > MAX_SLOTS = 150
> > >
> > > Linux_Owner Parent PID
> > > Slot Name ID Type RT_Handle Pointer Tsk_PID MEM_Sz USG Cnt
> > > -------------------------------------------------------------------------------
> > > 142 TASK1 0x042da6bf TASK 0xe09f2220 0x00000000 0 20179 1
> > > 190 RTGLBF 0x9ac6d9e5 SHMEM 0xe09f1000 0x00000000 0 2097152 1
> > > tester1:/home/nfs_share/rtnet #
> > >
> > > only my task appears.
> > > The receive part of the example blocks, and never return.
> > > I've already use some printk and the task manager code never run.
> > >
> > > Maybe is something related with the RTAI task. I'm using RTAI-3.4 stable release.
> > >
> > > Any clues????
> >
> > Nope, specifically as I haven't changed anything related. I would
> > suggest to either vary the versions (older RTnet SVN that used to work,
> > older RTAI) or step into the rtdm_task creation of the stack manager.
> > Actually, that service should return some error code if anything went wrong.
> >
> > Jan
> >
> >
>
> --
> Jorge Almeida
> j-a...@cr...
> DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> RTnet-developers mailing list
> RTn...@li...
> https://lists.sourceforge.net/lists/listinfo/rtnet-developers
>
--
Jorge Almeida
j-a...@cr...
DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.
|