Changeset 85690 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 11, 2020 1:23:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
r85518 r85690 48 48 #endif 49 49 50 51 /** @def RTLNX_VER_MIN 52 * Evaluates to true if the linux kernel version is equal or higher to the 53 * one specfied. */ 54 #define RTLNX_VER_MIN(a_Major, a_Minor, a_Patch) \ 55 (LINUX_VERSION_CODE >= KERNEL_VERSION(a_Major, a_Minor, a_Patch)) 56 /** @def RTLNX_VER_MAX 57 * Evaluates to true if the linux kernel version is less to the one specfied 58 * (exclusive). */ 59 #define RTLNX_VER_MAX(a_Major, a_Minor, a_Patch) \ 60 (LINUX_VERSION_CODE < KERNEL_VERSION(a_Major, a_Minor, a_Patch)) 61 /** @def RTLNX_VER_RANGE 62 * Evaluates to true if the linux kernel version is equal or higher to the given 63 * minimum version and less (but not equal) to the maximum version (exclusive). */ 64 #define RTLNX_VER_RANGE(a_MajorMin, a_MinorMin, a_PatchMin, a_MajorMax, a_MinorMax, a_PatchMax) \ 65 ( LINUX_VERSION_CODE >= KERNEL_VERSION(a_MajorMin, a_MinorMin, a_PatchMin) \ 66 && LINUX_VERSION_CODE < KERNEL_VERSION(a_MajorMax, a_MinorMax, a_PatchMax) ) 67 68 50 69 #include <linux/version.h> 51 70 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33) … … 59 78 /* We only support 2.4 and 2.6 series kernels */ 60 79 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) 61 # error We only support 2.4 and 2.6 series kernels80 # error Sorry, we do not support 2.3 and earlier kernels. 62 81 #endif 63 82 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 64 # error We only support 2.4 and 2.6 series kernels83 # error Sorry, we do not support 2.5 series kernels (might work though). 65 84 #endif 66 85
Note:
See TracChangeset
for help on using the changeset viewer.