kernel thread
Hello,
I want to create a new task in kernel space and using following function call:
int NewTask(void *arg)
{
while(1)
{
......;
Sleep(10);
}
}
int CreateTask(void)
{
......
kernel_thread(NewTask, ¶meter, CLONE_KERNEL);
return 0;
}
The NewTask was called, but the CreatTask function did not return, it blocked at the function of kernel_thread(). What was wrong with the kernel_thread? Should it just create another thread and let the parent thread exits?
Thank you
Last edited by yhus; 08-04-2005 at 06:50 AM.
|