All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] Sleep in rtdm driver
@ 2010-03-18 12:02 robert165
  2010-03-18 15:18 ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: robert165 @ 2010-03-18 12:02 UTC (permalink / raw)
  To: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

Hi,



在2010-03-18 00:19:47,"Philippe Gerum" <rpm@xenomai.org> 写道:
>On Wed, 2010-03-17 at 22:07 +0800, robert165 wrote:
>> Hi everyone!
>> 
>> I'm writing a gpio driver in RTDM. I start it with the demo "Hard real
>> time RTDM driver skeleton v1.1" of Jan Kiszka.
>> If I used rtdm_task_sleep in rt_ioctrl  function,  it return that
>> "Xenomai: assertion failed at kernel/xenomai/skins/rtdm/drvlib.c:372
>> (!xnpod_unblockable_p())"  when running.
>> It is said that rtdm_task_sleep can be called from Kernel-based task.
>> Why I can't use it in my driver. Optionally, I can do this in
>> user-space by periodic calling the driver, but it seems slower than in
>> kernel space.
>
>I'm puzzled: what does "slower" mean, regarding what operation?
I am sorry, I means is it more effective if doing things in kernel space.  I think when periodic calling driver in user-space, it may spent more in context switching.
Thanks a lot.

[-- Attachment #2: Type: text/html, Size: 1719 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Xenomai-help]  Analogy vs Comedi
@ 2010-02-07 20:43 Jaryn Sepesi
  2010-02-07 21:27 ` Alexis Berlemont
  0 siblings, 1 reply; 7+ messages in thread
From: Jaryn Sepesi @ 2010-02-07 20:43 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi everyone!

I'm designing a real-time system based on Xenomai and NI 6259 DAQ board.
Analogy contains a driver for my card, but there is one little problem. I
have some experience using this card with normal non-RT linux + Comedi, so I
know It needs to be calibrated via tools like comedi_soft_calibrate. I
didn't find any suitable equivalent of this tool in Xenomai documentation.

My question is - Is it possible to use Comedi tools (like mentioned
comedi_soft_calibrate) together with analogy driver? And if not, can I use
comedi driver combined with Xenomai? I mean for RT applications. (Yes, I
know this is definitely not a clean approach, but still better than use
different RTOS)

Thank you very much!

BR,
Jaryn Sepesi

[-- Attachment #2: Type: text/html, Size: 773 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-19  4:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 12:02 [Xenomai-help] Sleep in rtdm driver robert165
2010-03-18 15:18 ` Jan Kiszka
2010-03-19  4:17   ` robert165
  -- strict thread matches above, loose matches on Subject: below --
2010-02-07 20:43 [Xenomai-help] Analogy vs Comedi Jaryn Sepesi
2010-02-07 21:27 ` Alexis Berlemont
2010-03-17 14:07   ` [Xenomai-help] Sleep in rtdm driver robert165
2010-03-17 15:05     ` Jan Kiszka
2010-03-18  8:33       ` robert165
2010-03-17 16:19     ` Philippe Gerum

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.