Lines 13-27
Link Here
|
13 |
|
13 |
|
14 |
|
14 |
|
15 |
/* |
15 |
/* |
16 |
* compat_exit() provides an access to the exit() function. It must |
|
|
17 |
* be named compat_exit(), as exit() (with different signature) is |
18 |
* provided by x86-64, arm and other (but not by i386). |
19 |
*/ |
20 |
#define __NR_compat_exit __NR_exit |
21 |
static inline _syscall1(int, compat_exit, int, exit_code); |
22 |
|
23 |
|
24 |
/* |
25 |
* wait_for_completion and friends did not exist before 2.4.9. |
16 |
* wait_for_completion and friends did not exist before 2.4.9. |
26 |
*/ |
17 |
*/ |
27 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 9) |
18 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 9) |
Lines 31-36
Link Here
|
31 |
#else |
22 |
#else |
32 |
|
23 |
|
33 |
/* |
24 |
/* |
|
|
25 |
* compat_exit() provides an access to the exit() function. It must |
26 |
* be named compat_exit(), as exit() (with different signature) is |
27 |
* provided by x86-64, arm and other (but not by i386). |
28 |
*/ |
29 |
#define __NR_compat_exit __NR_exit |
30 |
static inline _syscall1(int, compat_exit, int, exit_code); |
31 |
|
32 |
|
33 |
/* |
34 |
* See compat_wait_for_completion in compat_completion.h. |
34 |
* See compat_wait_for_completion in compat_completion.h. |
35 |
* compat_exit implicitly performs an unlock_kernel, in resident code, |
35 |
* compat_exit implicitly performs an unlock_kernel, in resident code, |
36 |
* ensuring that the thread is no longer running in module code when the |
36 |
* ensuring that the thread is no longer running in module code when the |