As you said, Philippe already guided me in the right direction. I'll check RTnet for sure, however the chipset of my wireless card is 2561 and uses the rt61 module from rt2x00 project. I'll try my best to port this code to RTnet. If I'm successful I'll definitely let you know.

Regards,

alphan

On Oct 30, 2008, at 11:38 AM, Jan Kiszka wrote:

Alphan Ulusoy wrote:
Hi all,

I' am trying to send small UDP datagrams in a real-time system. I can't
get a satisfactory performance when I send these packets from a
userspace Xenomai task using sendto() call.

That's why I tried to code a small kernel module to make some
measurements. However; whenever
   • A xenomai task
   • An alarm function
   • A thread created with kthread_run() form a xenomai task
that includes the sock_sendmsg() call runs, system crashes. However, if
a write a regular kernel module, the it works just fine...

Below you can find the code and the crash dump.

Does anyone have any suggestions? Is there any other way that I can send
a UDP packet from a kernel Xenomai task?

I think Philippe already suggested that you should start reading a bit
about the co-kernel model and its implications.

Also, you may want to look at RTnet if you have to send UDP packets
under RT constraints.

Jan

--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to