/**************************************************************************** * Copyright (c) 2006 DST Technologies Inc. All Rights Reserved. * * Module: LLD_KERNEL * * Description: This file contains Linux specific macros * * Notes: * ***************************************************************************/ #ifndef _LLD_KERNEL_H_ #define _LLD_KERNEL_H_ /*========================================= * Linux specific definitions *========================================*/ #define KERNEL_2_4_0 ((LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)) && (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,0))) #define KERNEL_BELOW_2_4_0 (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) #define mCurrentPid (lld_os_get_usermode_process_id()) #define mCurrentTid (current->pid) #define ERR_RESTART_SYS (-ERESTARTSYS) #define LLD_SEM struct semaphore #if 1 # define WAIT_Q wait_queue_head_t #else # define WAIT_Q struct wait_queue * #endif #endif /* _LLD_KERNEL_H_ */