3 |
* |
* |
4 |
* Copyright (C) 2005-2009 NTT DATA CORPORATION |
* Copyright (C) 2005-2009 NTT DATA CORPORATION |
5 |
* |
* |
6 |
* Version: 1.7.0-pre 2009/08/24 |
* Version: 1.7.0 2009/09/03 |
7 |
* |
* |
8 |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
* This file is applicable to both 2.4.30 and 2.6.11 and later. |
9 |
* See README.ccs for ChangeLog. |
* See README.ccs for ChangeLog. |
58 |
#define KERN_CONT "" |
#define KERN_CONT "" |
59 |
#endif |
#endif |
60 |
|
|
|
/* To support PID namespace. */ |
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) |
|
|
#define find_task_by_pid find_task_by_vpid |
|
|
#endif |
|
|
|
|
61 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16) |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 16) |
62 |
#define mutex semaphore |
#define mutex semaphore |
63 |
#define mutex_init(mutex) init_MUTEX(mutex) |
#define mutex_init(mutex) init_MUTEX(mutex) |
214 |
#endif /* __LITTLE_ENDIAN */ |
#endif /* __LITTLE_ENDIAN */ |
215 |
#endif |
#endif |
216 |
|
|
|
#ifndef _LINUX_SRCU_H |
|
|
|
|
|
struct srcu_struct { |
|
|
int counter_idx; |
|
|
int counter[2]; |
|
|
}; |
|
|
|
|
|
static inline int init_srcu_struct(struct srcu_struct *sp) |
|
|
{ |
|
|
return 0; |
|
|
} |
|
|
|
|
|
int srcu_read_lock(struct srcu_struct *sp); |
|
|
void srcu_read_unlock(struct srcu_struct *sp, const int idx); |
|
|
void synchronize_srcu(struct srcu_struct *sp); |
|
|
|
|
|
#endif |
|
|
|
|
217 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) |
218 |
|
|
219 |
struct path { |
struct path { |