[Xenomai-core] [PATCH] add tut01_skeleton

2007-05-01 Thread trem
I have to plane next one. I think about shawdow_task (to use device in rt mode) and synchronization. If people have idea for others example, I would be pleased to read them. regards, trem tut01_skeleton_01.patch.bz2 Description: application/bzip _

[Xenomai-core] [PATCH] add tut02-skeleton

2007-05-28 Thread trem
ds, Philippe Index: tut02-skeleton-app.c === --- tut02-skeleton-app.c (révision 0) +++ tut02-skeleton-app.c (révision 0) @@ -0,0 +1,114 @@ +/*** + * Copyright (

Re: [Xenomai-core] [PATCH] add tut02-skeleton

2007-05-28 Thread trem
Hi Thanks for the reply (jan too). I've tried to use all of your feedback, and I send you the new release of this tut02. regards, Philippe Gilles Chanteperdrix wrote: > trem wrote: > > + mlockall(MCL_CURRENT | MCL_FUTURE); > > Please show people the right way to code, ch

Re: [Xenomai-core] [PATCH] add tut02-skeleton

2007-05-28 Thread trem
Hi You're right, perror could be used instead of strerror(-ret), it's simpler. And I've remoded all "fflush", as you said, there are useless and it's a tutorial about xenomai. So I think that those "fflush" aren't necessary. Thanks for feedback,

Re: [Xenomai-core] RTDM context_size question

2007-08-20 Thread trem
Jan Kiszka wrote: > trem wrote: >> Jan Kiszka wrote: >>> trem wrote: >>> >>>> Jan Kiszka wrote: >>>> >>>>> Steven Kauffmann wrote: >>>>> >>>>>> Hi >>>>>>

[Xenomai-core] [PATCH] change tut01 to use global buffer

2007-08-20 Thread trem
Hi As already discussed with Jan, I've changed the tut01. Now : - it use a global buffer - tut01-skeleton-app has the same behaviour as tut02-skeleton-app. With no argument, the program read in the device, with an argument, the program write in the device. regards, Philippe PS : the website seem

Re: [Xenomai-core] RTDM context_size question

2007-08-23 Thread trem
Jan Kiszka wrote: > Hi Philippe, > > sorry for the delay - I was and still am short on time. > > trem wrote: >> Hi >> >> Oh, I understand your point of view, and I found it fine. We do an >> example quite complete (and with some sense), and we split it into

[Xenomai-core] simple example for rtdm

2007-09-16 Thread trem
Hi I've written a little exemple for rtdm. It uses open, close, read, write ioctl and 3 kind of buffer (local, device, global). This is an alpha release, so I'll be pleased to get some feedback. you can find it here : http://zarb.org/~trem/tut03-skeleton-drv.c http://zarb.org/~

Re: [Xenomai-core] simple example for rtdm

2007-09-19 Thread trem
Jan Kiszka wrote: > trem wrote: >> Hi >> >> I've written a little exemple for rtdm. It uses open, close, read, write >> ioctl and 3 kind of buffer (local, device, global). This is an alpha >> release, so I'll be pleased to get some feedback. >> &