All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rtdm_event_pulse  in user space
@ 2013-11-25  9:39 Johann Obermayr
  2013-11-25  9:46 ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Johann Obermayr @ 2013-11-25  9:39 UTC (permalink / raw)
  To: Xenomai

Hello,

Is there a way to make a
rt_event_pulse.
A kernel function  rtdm_event_pulse is available, but no user space 
function.

Thanks.

Best Regards
   Johann



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

* Re: [Xenomai] rtdm_event_pulse  in user space
  2013-11-25  9:39 [Xenomai] rtdm_event_pulse in user space Johann Obermayr
@ 2013-11-25  9:46 ` Philippe Gerum
  2013-11-26 10:50   ` Johann Obermayr
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2013-11-25  9:46 UTC (permalink / raw)
  To: johann.obermayr, Xenomai

On 11/25/2013 10:39 AM, Johann Obermayr wrote:
> Hello,
>
> Is there a way to make a
> rt_event_pulse.
> A kernel function  rtdm_event_pulse is available, but no user space
> function.
>

rtdm_event_pulse() is part of the inter-driver API, which explains why 
there is no userland access to it. Assuming you need to wake up a RTDM 
task waiting on a particular event via rtdm_event_wait(), then you have 
to implement an rt/nrt ioctl handler in your RTDM driver which will send 
the event. Userland can issue this ioctl request from userland.

-- 
Philippe.


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

* Re: [Xenomai] rtdm_event_pulse  in user space
  2013-11-25  9:46 ` Philippe Gerum
@ 2013-11-26 10:50   ` Johann Obermayr
  2013-11-26 10:55     ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Johann Obermayr @ 2013-11-26 10:50 UTC (permalink / raw)
  To: xenomai

Am 25.11.2013 10:46, schrieb Philippe Gerum:
> On 11/25/2013 10:39 AM, Johann Obermayr wrote:
>> Hello,
>>
>> Is there a way to make a
>> rt_event_pulse.
>> A kernel function  rtdm_event_pulse is available, but no user space
>> function.
>>
>
> rtdm_event_pulse() is part of the inter-driver API, which explains why 
> there is no userland access to it. Assuming you need to wake up a RTDM 
> task waiting on a particular event via rtdm_event_wait(), then you 
> have to implement an rt/nrt ioctl handler in your RTDM driver which 
> will send the event. Userland can issue this ioctl request from userland.
>
Hi,

in userspace there are rt_event_signal & rt_event_clear, but no 
rt_event_pulse.
i need rt_event_pulse to make my source compatible with EventPulse 
Window-Function.

Best Regards
    Johann


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

* Re: [Xenomai] rtdm_event_pulse  in user space
  2013-11-26 10:50   ` Johann Obermayr
@ 2013-11-26 10:55     ` Philippe Gerum
  2013-11-26 11:06       ` Johann Obermayr
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2013-11-26 10:55 UTC (permalink / raw)
  To: johann.obermayr, xenomai

On 11/26/2013 11:50 AM, Johann Obermayr wrote:
> Am 25.11.2013 10:46, schrieb Philippe Gerum:
>> On 11/25/2013 10:39 AM, Johann Obermayr wrote:
>>> Hello,
>>>
>>> Is there a way to make a
>>> rt_event_pulse.
>>> A kernel function  rtdm_event_pulse is available, but no user space
>>> function.
>>>
>>
>> rtdm_event_pulse() is part of the inter-driver API, which explains why
>> there is no userland access to it. Assuming you need to wake up a RTDM
>> task waiting on a particular event via rtdm_event_wait(), then you
>> have to implement an rt/nrt ioctl handler in your RTDM driver which
>> will send the event. Userland can issue this ioctl request from userland.
>>
> Hi,
>
> in userspace there are rt_event_signal & rt_event_clear, but no
> rt_event_pulse.
> i need rt_event_pulse to make my source compatible with EventPulse
> Window-Function.
>
>

You mentioned both rt_event_pulse, and rtdm_event_pulse in your initial 
post, which is confusing: those are two different APIs.

RT_EVENTs - posted by rt_event_signal - from the native API are not what 
you look for. Check the RT_SEM object, with rt_sem_create() using the 
S_PULSE flag.

-- 
Philippe.


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

* Re: [Xenomai] rtdm_event_pulse  in user space
  2013-11-26 10:55     ` Philippe Gerum
@ 2013-11-26 11:06       ` Johann Obermayr
  0 siblings, 0 replies; 5+ messages in thread
From: Johann Obermayr @ 2013-11-26 11:06 UTC (permalink / raw)
  To: xenomai

Am 26.11.2013 11:55, schrieb Philippe Gerum:
> On 11/26/2013 11:50 AM, Johann Obermayr wrote:
>> Am 25.11.2013 10:46, schrieb Philippe Gerum:
>>> On 11/25/2013 10:39 AM, Johann Obermayr wrote:
>>>> Hello,
>>>>
>>>> Is there a way to make a
>>>> rt_event_pulse.
>>>> A kernel function  rtdm_event_pulse is available, but no user space
>>>> function.
>>>>
>>>
>>> rtdm_event_pulse() is part of the inter-driver API, which explains why
>>> there is no userland access to it. Assuming you need to wake up a RTDM
>>> task waiting on a particular event via rtdm_event_wait(), then you
>>> have to implement an rt/nrt ioctl handler in your RTDM driver which
>>> will send the event. Userland can issue this ioctl request from 
>>> userland.
>>>
>> Hi,
>>
>> in userspace there are rt_event_signal & rt_event_clear, but no
>> rt_event_pulse.
>> i need rt_event_pulse to make my source compatible with EventPulse
>> Window-Function.
>>
>>
>
> You mentioned both rt_event_pulse, and rtdm_event_pulse in your 
> initial post, which is confusing: those are two different APIs.
>
> RT_EVENTs - posted by rt_event_signal - from the native API are not 
> what you look for. Check the RT_SEM object, with rt_sem_create() using 
> the S_PULSE flag.
>

Thanks,

i will looking for rt_sem_create and S_PULSE.

Regards
   Johann



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

end of thread, other threads:[~2013-11-26 11:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25  9:39 [Xenomai] rtdm_event_pulse in user space Johann Obermayr
2013-11-25  9:46 ` Philippe Gerum
2013-11-26 10:50   ` Johann Obermayr
2013-11-26 10:55     ` Philippe Gerum
2013-11-26 11:06       ` Johann Obermayr

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.