All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: wcall@domain.hid
Cc: 'Xenomai help' <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] xenomai i2c
Date: Thu, 22 Jan 2009 22:02:44 +0100	[thread overview]
Message-ID: <4978DEF4.9080807@domain.hid> (raw)
In-Reply-To: <001501c97cd2$892353e0$9b69fba0$@com>

Wayne Call wrote:
> Is it possible to read the /sys/bus/i2c/devices/0-0048/temperature
> file using rt_dev_read?  The application is running in the real time
> context.  Even though the device driver is not in the real time
> context, can an application running in the real time context just
> simple access the /sys/bus/i2c/devices files using rt_dev_read and
> rt_dev_write?  The /sys is where the sysfs has been mounted.

No, rt_dev_read/rt_dev_write is for devices created using the RTDM skin,
not for Linux devices or files. When an application running in real-time
context (that is, in primarey mode) reads a Linux file, it switches to
secondary mode, that is to say, it becomes a plain linux task with linux
induced latencies.

-- 
					    Gilles.


  reply	other threads:[~2009-01-22 21:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1231007816-1232652648-cardhu_decombobulator_blackberry.rim.net-1405832660-@domain.hid>
2009-01-22 19:33 ` [Xenomai-help] xenomai i2c Gilles Chanteperdrix
2009-01-22 20:46   ` Wayne Call
2009-01-22 21:02     ` Gilles Chanteperdrix [this message]
2009-01-22 18:09 Wayne Call
2009-01-22 19:16 ` Gilles Chanteperdrix

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=4978DEF4.9080807@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=wcall@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.