Is there a system call I can use to access kernel threads?
Recent versions of glibc has clone() defined thus:
int clone(int (*fn)(), void **stack, int flags, int argc,... /* args */);