[Ilugc] Kernel_thread info?

  • From: siva@xxxxxxxxxxx (Sivasankar Chander)
  • Date: Thu Nov 18 11:27:31 2004


kernel_thread(my_task, &my_structure, CLONE_FS | CLONE_FILES |
CLONE_SIGHAND) call in my code..

I have located this call in $LINUX_HOME/linux/kerne/context.c

But where is the header that shows the defination of this prototype
function..

  Are you writing kernel-mode code (i.e. code that is part of a device
driver or kernel module) or user-mode code (i.e. code that runs outside
the kernel and uses syscalls to access kernel functionality) ?

  If it's the latter, you can't use kernel_thread() in your code (at least,
not directly).

-Siva

Other related posts: