All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Native rt_event_bind() question.
@ 2010-09-05 22:38 Bob Feretich
  2010-09-06  4:56 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Feretich @ 2010-09-05 22:38 UTC (permalink / raw)
  To: xenomai

  I am confused about the operation of the Native rt_event_bind() 
function and I have not found any example of its use.

The documentation states...
int rt_event_bind (RT_EVENT * event, const char * name, RTIME timeout)
Parameters:
...
event The address of an event flag group descriptor retrieved by the 
operation. Contents of
this memory is undefined upon failure.
...

Is the user-space task supposed to provide memory for the RT_EVENT, ...
example:
RT_EVENT event_structure;
...
rt_event_bind (&event_structure,...)

Or, does the user-space program just provide a pointer variable to 
retain the event structure provided to it by the function?
example:
RT_EVENT *event_pointer;
...
rt_event_bind (event_pointer,...)

Neither seems to work correctly, the former only allocates a word of memory.
printf("sizeof(event_structure)=%d", sizeof(event_structure) );
Prints 4. This seems too small.

The latter fails with an error code -14 (EFAULT).

Regards,
Bob Feretich



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

end of thread, other threads:[~2010-09-06  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05 22:38 [Xenomai-help] Native rt_event_bind() question Bob Feretich
2010-09-06  4:56 ` Philippe Gerum
2010-09-06  8:34   ` Bob Feretich
2010-09-06  9:33     ` 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.