All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sam Claassens" <sam@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] FW: RT serial port (rt_dev_write()) question
Date: Wed, 17 Feb 2010 08:52:10 +0200	[thread overview]
Message-ID: <000401caaf9d$bc9666a0$35c333e0$@com> (raw)

Hi,

Is there any reason you shouldn't rt_task_shadow() the main thread?

Regards,
Sam

-----Original Message-----
From: xenomai-help-bounces@domain.hid [mailto:xenomai-help-bounces@domain.hid] On
Behalf Of Dehann Fourie
Sent: 16 February 2010 09:24 PM
To: Jan Kiszka
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RT serial port (rt_dev_write()) question

Thanks, explains alot.

Regards,
Dehann

On Tue, Feb 16, 2010 at 9:03 PM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
> Dehann Fourie wrote:
>> Hi,
>>
>> Quick question. Can you write to a rt device (say "rtser0") from the
>> main thread, ie not in a rt_task?
>
> Short answer: Nope.
>
> Longer version: You must call this service over a Linux task that was
> shadowed for use with Xenomai. That can also be the main thread of some
> application, though (check rt_task_shadow if use the native skin).
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
>



-- 
Dehann Fourie

_______________________________________________
Xenomai-help mailing list
Xenomai-help@domain.hid
https://mail.gna.org/listinfo/xenomai-help



             reply	other threads:[~2010-02-17  6:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17  6:52 Sam Claassens [this message]
2010-02-20 10:46 ` [Xenomai-help] FW: RT serial port (rt_dev_write()) question Gilles Chanteperdrix
2010-02-21 16:29   ` Sam Claassens

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='000401caaf9d$bc9666a0$35c333e0$@com' \
    --to=sam@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.