[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pthread in kernel modules?



Title: linen_small Stationery
Hi all,
 
I was shocked to see the codelets in some handouts.
 
int init_module()
{   pthread_create(abc, NULL, my_thread, NULL); }
 
Could this ever be possible?
To the best of my knowledge, only macros and static inline functions defined in *.h's and
functions that are listed in 'ksyms -a' can be used in kernel module programming...
I used kernel_thread() several times but never ever though of using pthread in kernel modules.
 
They said it's possible.
I couldn't ask any further because that was not the topic of the seminar.
 
Back to my office I tried to insmod pthreaded module.. but failed miserably.
unresolved symbol... pthread_create, pthread_join..
 
Could you tell me if pthread in modules is possible, and how?
 
 
Yours,
       Theodore.