Query: current_thread
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
current_thread(9r) current_thread(9r)NAMEcurrent_thread - General: Is a pointer to the currently running kernel threadSYNOPSISvoid current_thread( void );ARGUMENTSNoneDESCRIPTIONThe current_thread routine is a pointer to the currently running kernel thread. Typically, kernel modules use this routine to reference the wait_result member of the thread structure pointer associated with the currently running kernel thread. A module calls current_thread after calls to assert_wait_mesg and thread_block. If the module needs to set a timeout, then it calls current_thread after calls to assert_wait_mesg, thread_set_timeout, and thread_block. The kernel can set the wait_result member to one of the following values: The result of the assert wait is a normal wakeup. The specified timeout has expired. The wait condition was interrupted by the clear_wait routine. The result of the assert wait is that the current ker- nel thread should terminate. The current kernel thread should be restarted.RETURN VALUESNoneSEE ALSORoutines: assert_wait_mesg(9r), clear_wait(9r), thread_block(9r), thread_set_timeout(9r) Data Structures: thread(9s) current_thread(9r)
Related Man Pages |
---|
assert_wait_mesg(9r) - osf1 |
kernel_isrthread(9r) - osf1 |
lock_write(9r) - osf1 |
simple_lock(9r) - osf1 |
thread_halt_self(9r) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Relation between kernel & weblogic thread |
nk thread kernel parameter |