| | 40 | /* copy_from/to_usr is called memcpy_from/to_fs in 2.0 kernels; perhaps in |
| | 41 | some early 2.1 kernels too? */ |
| | 42 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4)) |
| | 43 | #define copy_from_user memcpy_fromfs |
| | 44 | #define copy_to_user memcpy_tofs |
| | 45 | #endif |
| | 46 | |
| | 47 | /* get_user was redefined in 2.1 kernels to use two arguments, and returns |
| | 48 | an error code */ |
| | 49 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,4)) |
| | 50 | #define get_user_data(to,from) ((to) = get_user(from),0) |
| | 51 | #else |
| | 52 | #define get_user_data(to,from) get_user(to,from) |
| | 53 | #endif |
| | 54 | |
| | 55 | |