HelenOS sources

SYS_THREAD_GET_ID   65 kernel/generic/src/syscall/syscall.c 	[SYS_THREAD_GET_ID] = (syshandler_t) sys_thread_get_id,
SYS_THREAD_GET_ID   46 uspace/app/trace/syscalls.c 	[SYS_THREAD_GET_ID] = { "thread_get_id", 1, V_ERRNO },
SYS_THREAD_GET_ID  149 uspace/lib/c/generic/thread/thread.c 	(void) __SYSCALL1(SYS_THREAD_GET_ID, (sysarg_t) &thread_id);
HelenOS homepage, sources at GitHub