[lug] kernel thread
mohan kumar
mohan_linux at yahoo.com
Fri May 11 00:16:00 MDT 2001
hi,
iam trying to create a kernel thread and it does not
seam to work.
my code goes like this(it is just a test module)
...
...
...
int thread(void * a)
{
printk("am there\n");
}
int init_module()
{
kernel_thread(thread,NULL,CLONE_VM|CLONE_FS);
}
void cleanup_module()
{
printk("over and out\n");
}
...
...
...
on some docs i saw something like, i have to
schedule the thread with a task structure. after some
view at the scheduling code i understod that they are
outdated docs. so can u help me by telling what
iam missing?
(i am still new to linux kernel :-) )
Mohan S
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
More information about the LUG
mailing list