#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) ) // Use specific structures before kernel 3.1 #else // Use the new structures, after kernel 3.1 #endif