cvs commit: src/share/man/man9 kthread.9

Julian Elischer julian at elischer.org
Fri Sep 24 14:34:24 PDT 2004



John Baldwin wrote:

>On Friday 24 September 2004 03:58 pm, Joerg Wunsch wrote:
>  
>
>>joerg       2004-09-24 19:58:47 UTC
>>
>>  FreeBSD src repository
>>
>>  Modified files:
>>    share/man/man9       kthread.9
>>  Log:
>>  Document that kthread_exit()ing will cause a wakeup(9) on the thread
>>  handle.
>>
>>  MFC after:      1 week
>>    
>>
>
>It's not the thread handle, it's the proc pointer:
>
>        /*
>         * If this is a kthread, then wakeup anyone waiting for it to exit.
>         */
>        if (p->p_flag & P_KTHREAD)
>
could be an idea to use something thread specific as it is possible that 
kernel therads may some day become actual threads
in one "kernel" process.  The things that stop this at the moment 
include that there is no p_comm field in a thread so
'ps' would ahve nothing to show to identify what the threads were..  I 
have been considerring adding a td_desc
field to threads to be used in teh same way...



>
>  
>



More information about the cvs-src mailing list