*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> current_thread (9r)              
Title
Content
Arch
Section
 

current_thread(9r)

Contents


NAME    [Toc]    [Back]

       current_thread  -  General:  Is a pointer to the currently
       running kernel thread

SYNOPSIS    [Toc]    [Back]

       void current_thread(
               void );

ARGUMENTS    [Toc]    [Back]

       None

DESCRIPTION    [Toc]    [Back]

       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  kernel
       thread should terminate.  The current kernel thread should
       be restarted.

RETURN VALUES    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Routines:      assert_wait_mesg(9r),       clear_wait(9r),
       thread_block(9r), thread_set_timeout(9r)

       Data Structures: thread(9s)



                                               current_thread(9r)
[ Back ]
 Similar pages
Name OS Title
current_task Tru64 General: Returns a pointer to the task structure associated with the currently running kernel thread
select_wakeup Tru64 General: Wakes up a kernel thread
mpsleep Tru64 General: Blocks the current kernel thread
unix_release Tru64 General: Releases binding of the kernel thread
select_enqueue Tru64 General: Adds the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
thread_wakeup_one Tru64 General: Wakes up the first kernel thread waiting on a channel
select_dequeue Tru64 General: Removes the last kernel thread waiting for an event
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
kernel_thread_w_arg Tru64 General: Starts a kernel thread with a calling argument passed in
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service