Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How to know whether a particular patch is applied to the kernel? Especially RT-Preempt Patch.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

In the case of preempt you can just use uname:

uname -v
#23 SMP PREEMPT RT Fri Oct 16 11:52:29 CET 2012

The string PREEMPT shows that you use a kernel version with the realtime patch.

Some other patches might also changes the uname string. So it might also be a help. If this is not the case you can try to look at your .config. The file could be found in the /boot directory or (if enabled) by using cat /proc/config.gz. Maybe there is also a version in /usr/src/linux (or where you put the kernel sources).

If you found the config file you can grep for specific settings and find out if a patch is used.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.