From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rtser not showing up
Date: Wed, 09 May 2007 08:30:06 +0200 [thread overview]
Message-ID: <46416A6E.1070605@domain.hid> (raw)
In-Reply-To: <17984.61751.376631.920611@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
Gilles Chanteperdrix wrote:
> Brandt Erickson wrote:
> >
> > > No node will turn up in /dev, you will find the list of available RTDM
> > > devices in /proc/xenomai/rtdm/named_devices.
> >
> > Okay,
> > there is a /proc/xenomai/rtdm/rtser0. The example opens the file
> > "rtser0", does this default to the full path name when I use
> > rt_dev_open?
> >
> > Right now, it appears I can open the file (rt_dev_open returns 0) and
> > configure the serial port (using rt_dev_ioctl), however, every call to
> > rt_dev_write returns -1. I'm using the configuration from the example
> > code which basically has everything set to defaults. Is there an
> > equivalent of errno I can get to find out what's going wrong? Thanks.
> > -Brandt
>
> The errors of the serial driver are documented here:
>
> http://www.xenomai.org/documentation/trunk/html/api/group__rtserial.html
>
> -1 is -EPERM... which is not documented. -EPERM probably means that you
> are trying to use a real-time call from a non real-time thread. See
> rt_task_shadow or rt_task_create.
>
That's the point. The serial driver's write operation requires real-time
context and return -EPERM otherwise. Documentation should be enhanced...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
prev parent reply other threads:[~2007-05-09 6:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 17:34 [Xenomai-help] rtser not showing up Brandt Erickson
2007-05-08 18:42 ` Gilles Chanteperdrix
2007-05-08 21:23 ` Brandt Erickson
2007-05-08 21:45 ` Brandt Erickson
2007-05-08 21:52 ` Gilles Chanteperdrix
2007-05-09 6:30 ` Jan Kiszka [this message]
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=46416A6E.1070605@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.