Thread (5 messages) 5 messages, 5 authors, 2013-01-21

RT_PREEMPT autodetection from user program

From: Michael Haberler <hidden>
Date: 2013-01-20 01:26:45

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help