From: Jan Kiszka <jan.kiszka@domain.hid>
To: Alphan Ulusoy <alphan@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] sock_sendmsg() causes crash
Date: Thu, 30 Oct 2008 10:38:00 +0100 [thread overview]
Message-ID: <49098078.7000402@domain.hid> (raw)
In-Reply-To: <939CEF84-66F5-4B05-A491-74091D527EC4@domain.hid>
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
next prev parent reply other threads:[~2008-10-30 9:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 17:41 [Xenomai-help] sock_sendmsg() causes crash Alphan Ulusoy
2008-10-30 9:38 ` Jan Kiszka [this message]
2008-10-30 20:09 ` Alphan Ulusoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49098078.7000402@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=alphan@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.