All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ?
@ 2009-01-20 13:16 roderik.wildenburg
  2009-01-20 13:20 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 14+ messages in thread
From: roderik.wildenburg @ 2009-01-20 13:16 UTC (permalink / raw)
  To: xenomai

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 process obviously becomes automatically a Xenomai task (task is listed in /proc/xenomai/sched) just by linking with my library (not even calling a xeno-function is necessary). 
Unfortunatelly this seems also to have an influence on the scheduling policy and the priority of the linux process:

When I set the policy (to SCHED_FIFO) and the priority of this linux process (by an external startup process) with :
	p.sched_priority = somepriority;
	sched_setscheduler(pidoflinuxprocess, SCHED_FIFO, &p);

and afterwards query the policy and priority within the process with :
	sched_getscheduler()
	sched_getparam()
I get the the policy SCHED_OTHER and a totaly different priority. This unfortunatelly prevents the linux process to be scheduled by linux as a prioritized process and therefore other prioritized processes with lower priority now are scheduled (by Linux) in front of my (normaly high prioritized) process.

After this long eplanation, which, I hope, is understandable, here my question:

How can I use Xenomai-libraries without Xenomai scheduling, or how can I build Xenomai based libraries usable for Xenomai and Linux (without influencing Linux schduling parameters)?

Unfortunatelly I don´t have a small and handy testcase at the moment, but I would create one, if you need it for answering my question.
Some additional info : I use Xenomai 2.3.5 on a PPC 2.4.25 Kernel

Thank you for your help in advance and best regards
Roderik

--------------------------------------------------------
manroland AG
Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle   
Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592
USt-Ident-Nr. DE 250200933


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <4975EAF5.2000604@domain.hid>]

end of thread, other threads:[~2009-01-22 14:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 13:16 [Xenomai-help] How to use Xenomai libraries with "normal" (non Xenomai) linux processes ? roderik.wildenburg
2009-01-20 13:20 ` Gilles Chanteperdrix
     [not found] <4975EAF5.2000604@domain.hid>
2009-01-21  9:53 ` roderik.wildenburg
2009-01-21 10:53   ` Gilles Chanteperdrix
2009-01-21 12:27     ` roderik.wildenburg
2009-01-21 13:05       ` Gilles Chanteperdrix
2009-01-21 13:36         ` Jan Kiszka
2009-01-22 12:22           ` roderik.wildenburg
2009-01-22 12:34             ` Jan Kiszka
2009-01-22 11:06         ` roderik.wildenburg
2009-01-22 13:14           ` Gilles Chanteperdrix
2009-01-22 14:25             ` roderik.wildenburg
2009-01-22 14:33               ` Gilles Chanteperdrix
2009-01-22 13:42           ` Gilles Chanteperdrix

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.