Skip to contentSkip to conversation

2.6.13 kernel_thread() question

DISCUSSION Redes II 2 participants 2 messages Oct 5, 2005 – Oct 7, 2005

lore
Share & tools
lore

Redes II

author
#0 lore raw

Hello,
Does kernel_thread detach the new Kernel thread from its parent? Does something like pthread_detach(tid) exist in Kernel module's programming? Thanks

Kernel: 2.6.13
Architecture:i32

#1 lore raw
Quoted 2 lines · Redes II

Hello,
Does kernel_thread detach the new Kernel thread from its parent?

AFAIR kernel_thread won't detach thread from its parent, for this you have to explicitely call reparent_to_init

Quoted 1 line

Does something like pthread_detach(tid) exist in Kernel module's programming?

I think no, as there isn't any seperate memory for the kernel threads, so no need for memory resources consumed by tid will be freed immediately when tid terminates .... (CMIIW)

--
Fawad Lateef