Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.11 /kernel/timer.c

Filename:/kernel/timer.c
Lines Added:6
Lines Deleted:0
Also changed in: (Previous) 2.4.11-pre6  2.4.10-ac10  2.4.10-ac9  2.4.10-ac8  2.4.10-ac7  2.4.10-ac5 
(Following) 2.4.12-ac1  2.4.12-ac2  2.4.12-ac3  2.4.12-ac4  2.4.12-ac5  2.4.12-ac6 

Location
[  2.4.11
  [  kernel
     o  timer.c

Patch

diff -u --recursive --new-file v2.4.10/linux/kernel/timer.c linux/kernel/timer.c
--- v2.4.10/linux/kernel/timer.c   Tue Jul  3 17:08:22 2001
+++ linux/kernel/timer.c   Mon Oct  8 10:41:41 2001
@@ -794,6 +794,12 @@
 
 #endif
 
+/* Thread ID - the internal kernel "pid" */
+asmlinkage long sys_gettid(void)
+{
+   return current->pid;
+}
+
 asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp)
 {
    struct timespec t;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.