Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: >>> Please correct me if I am wrong: In your replacement >>> pthread_getschedparam would read scheduling parameters which >>> should have been set with sched_setscheduler before(!) your >> replacement gets >>> active. Is this possible at all ? Wouldn´t I hav

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread roderik.wildenburg
> > Please correct me if I am wrong: In your replacement > > pthread_getschedparam would read scheduling parameters which should > > have been set with sched_setscheduler before(!) your > replacement gets > > active. Is this possible at all ? Wouldn´t I have to call > > sched_setscheduler (in "sys

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: > Sorry for the delayed answer, but I am fighting with an other Xenomai > problem too (PPC switchtest FPU problem, you probably heard about > it). > >>> I don´t understand this. Isn´t this a contradiction to your >> answer in >>> 2.) ? I thought sched_setsch

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: > Sorry for the delayed answer, but I am fighting with an other Xenomai > problem too (PPC switchtest FPU problem, you probably heard about > it). > >>> I don´t understand this. Isn´t this a contradiction to your >> answer in >>> 2.) ? I thought sched_setsch

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread Jan Kiszka
roderik.wildenb...@manroland.com wrote: > Jan Kiszka wrote: > >>> The point is that if you force it to secondary mode, and >> the next system >>> call is in fact a xenomai syscall, xenomai will switch the thread to >>> primary mode again. So, you have two useless mode switches which you >>> could

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread roderik.wildenburg
Jan Kiszka wrote: > > The point is that if you force it to secondary mode, and > the next system > > call is in fact a xenomai syscall, xenomai will switch the thread to > > primary mode again. So, you have two useless mode switches which you > > could have avoided if you had not forcibly switche

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-22 Thread roderik.wildenburg
Sorry for the delayed answer, but I am fighting with an other Xenomai problem too (PPC switchtest FPU problem, you probably heard about it). > > I don´t understand this. Isn´t this a contradiction to your > answer in > > 2.) ? I thought sched_setscheduler does not work for Xenomai tasks > > and

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > roderik.wildenb...@manroland.com wrote: 4.) Is there a way, to force back a process to secondary mode (after the Xenomai-systemcall has been executed) ? >>> Yes, but no, you do not want to do that. Xenomai automatically >>> switches the process when needed. >

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-21 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: >>> From this scenario deduce the following questions : >>> >>> 1.) Linking a linux-process with a Xenomai-library "transforms" >>> the linux process to a Xenomai-process/task. Is this true ? >> Yes, and you need this to be able to call Xenomai services. >

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-21 Thread roderik.wildenburg
> > > > From this scenario deduce the following questions : > > > > 1.) Linking a linux-process with a Xenomai-library "transforms" the > > linux process to a Xenomai-process/task. Is this true ? > > Yes, and you need this to be able to call Xenomai services. O.k. I thought so. > > For your i

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-21 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: >> It is not your job to decide the priority of a xenomai thread when >> it runs in secondary mode, you have to set the xenomai scheduler's >> priority of the thread, and xenomai itself will change the priority >> for linux scheduler. The way to do this is to

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-21 Thread roderik.wildenburg
> It is not your job to decide the priority of a xenomai thread when it > runs in secondary mode, you have to set the xenomai > scheduler's priority > of the thread, and xenomai itself will change the priority for linux > scheduler. The way to do this is to call pthread_setschedparam in the > "li

Re: [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-20 Thread Gilles Chanteperdrix
roderik.wildenb...@manroland.com wrote: > I have build a library which makes use of some Xenomai-Posix functions > (mainly shared memory but also some semaphore functions). This library > provides functions (logging) which should be used by Xenomai tasks and Linux > processes. > When I link this

[Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?

2009-01-20 Thread roderik.wildenburg
I have build a library which makes use of some Xenomai-Posix functions (mainly shared memory but also some semaphore functions). This library provides functions (logging) which should be used by Xenomai tasks and Linux processes. When I link this new library with a standard linux process, this pr