Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

thread_wakeup_one(9r) [osf1 man page]

thread_wakeup_one(9r)													     thread_wakeup_one(9r)

NAME
thread_wakeup_one - General: Wakes up the first kernel thread waiting on a channel SYNOPSIS
void thread_wakeup_one( vm_offset_t event ); ARGUMENTS
Specifies the event associated with the current kernel thread. DESCRIPTION
The thread_wakeup_one routine wakes up only the first kernel thread in the hash chain waiting for the event specified in the event argu- ment. This routine is actually a convenience wrapper for the thread_wakeup_prim routine with the one_thread argument set to TRUE (wake up only the first kernel thread) and the result argument set to THREAD_AWAKENED (wakeup is normal). RETURN VALUES
None SEE ALSO
Routines: assert_wait_mesg(9r), clear_wait(9r), thread_block(9r), thread_wakeup(9r) thread_wakeup_one(9r)

Check Out this Related Man Page

current_thread(9r)														current_thread(9r)

NAME
current_thread - General: Is a pointer to the currently running kernel thread SYNOPSIS
void current_thread( void ); ARGUMENTS
None DESCRIPTION
The 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 VALUES
None SEE ALSO
Routines: assert_wait_mesg(9r), clear_wait(9r), thread_block(9r), thread_set_timeout(9r) Data Structures: thread(9s) current_thread(9r)
Man Page

We Also Found This Discussion For You

1. What is on Your Mind?

Throw my Toys out of the Pram!

Hi Folks, Today hasn't been the best one of my career in IT. I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them. At the... (3 Replies)
Discussion started by: gull04
3 Replies