* [Xenomai-help] how to ensure whethere application is running on Xenomai domain?
@ 2007-03-05 17:28 Saiful Khan
2007-03-05 17:39 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Saiful Khan @ 2007-03-05 17:28 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Hello,
I have ported my GNU/Linux(Posix) application in Xenomai, and I have used
the xenomai skin. My application is running in highest priority (99).
1. How can I be sure that my application is running in Xenomai/Primary
domain with highest priority?
2. How can I ensure whethere it is switching to secondary mode due to some
calls like pritf()?
thanks & regards
Saiful
[-- Attachment #2: Type: text/html, Size: 407 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] how to ensure whethere application is running on Xenomai domain?
2007-03-05 17:28 [Xenomai-help] how to ensure whethere application is running on Xenomai domain? Saiful Khan
@ 2007-03-05 17:39 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2007-03-05 17:39 UTC (permalink / raw)
To: Saiful Khan; +Cc: xenomai
Saiful Khan wrote:
> Hello,
>
> I have ported my GNU/Linux(Posix) application in Xenomai, and I have
> used the xenomai skin. My application is running in highest priority (99).
> 1. How can I be sure that my application is running in Xenomai/Primary
> domain with highest priority?
cat /proc/xenomai/sched
should give you a list of the threads that are actually known by xenomai.
> 2. How can I ensure whethere it is switching to secondary mode due to
> some calls like pritf()?
You have an example of using the SIGXCPU signal for this purpose here:
http://www.xenomai.org/documentation/trunk/html/api/sigxcpu_8c-example.html
This example uses the native API, if you are using the posix api, you
should replace rt_task_set_mode with pthread_set_mode_np, documented here:
http://www.xenomai.org/documentation/trunk/html/api/group__posix__thread.html#g9dd3db5524fccb05a8868b7c33ccaa79
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-05 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05 17:28 [Xenomai-help] how to ensure whethere application is running on Xenomai domain? Saiful Khan
2007-03-05 17:39 ` 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.