patch-2.4.11-dontuse linux/kernel/timer.c
Next file: linux/lib/dec_and_lock.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Oct 8 10:41:41 2001
- Orig file:
v2.4.10/linux/kernel/timer.c
- Orig date:
Tue Jul 3 17:08:22 2001
diff -u --recursive --new-file v2.4.10/linux/kernel/timer.c linux/kernel/timer.c
@@ -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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)