linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RT_PREEMPT autodetection from user program
@ 2013-01-20  0:49 Michael Haberler
  2013-01-20  1:56 ` Sven-Thorsten Dietrich
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Haberler @ 2013-01-20  0:49 UTC (permalink / raw)
  To: linux-rt-users

Hi,

I need to autodetect the RT kernel for an application which runs under RTAI, Xenomai, RT_PREEMPT and vanilla kernels. 

To support a unified binary, I need to runtime detect the RT OS - what are my best options for RT_PREEMPT? from https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO#Checking_the_Kernel I gather the single method:

parsing 'ps' output for IRQ handlers being kthreads, i.e. for '[IRQ' or '[irq'

any chance of doing better than that, or parsing of utsname.release for "-rt"?  A false positive on a vanilla kernel could be a safety hazard.

thanks in advance,

Michael



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

end of thread, other threads:[~2013-01-21 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-20  0:49 RT_PREEMPT autodetection from user program Michael Haberler
2013-01-20  1:56 ` Sven-Thorsten Dietrich
2013-01-20  9:49 ` Stanislav Meduna
2013-01-20 12:43   ` Michael Mueller
2013-01-21 15:37 ` Clark Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).