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

  man pages->Tru64 Unix man pages -> select_wakeup (9r)              



NAME    [Toc]    [Back]

       select_wakeup - General: Wakes up a kernel thread

SYNOPSIS    [Toc]    [Back]

       void select_wakeup(
               sel_queue_t *selq );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to a sel_queue structure.

DESCRIPTION    [Toc]    [Back]

       The select_wakeup routine wakes up a kernel thread that is
       suspended while waiting for  an  event  on  the  specified
       device.  A  user-level  process  can use the select system
       call to cause the process to be  suspended  while  waiting
       for  an event to happen on a device. For example, a graphics
 application may issue a select call while waiting  for
       mouse  or  keyboard input to arrive. In this case the process
 would issue the select system call, which would indirectly
  call the graphics driver's select routine (through
       the driver's select entry point in  the  dsent  table)  to
       determine  if  any  input is available. If input is available,
 the select call may return immediately.  If no input
       is  currently available, the graphics driver would suspend
       the process until input arrived.

       For this example, when the graphics  driver  has  received
       input (typically through its interrupt handler), it causes
       any processes suspended from calling select to continue by
       calling  the  select_wakeup routine.  This causes any process
 currently suspended on the select channel (as  specified
 by the selq argument) to resume.

RETURN VALUES    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

       Routines:    select_dequeue(9r),   select_dequeue_all(9r),

       System Calls: select(2)

[ Back ]
 Similar pages
Name OS Title
thread_wakeup_one Tru64 General: Wakes up the first kernel thread waiting on a channel
thread_wakeup Tru64 General: Wakes up all kernel threads waiting for the specified event
select_enqueue Tru64 General: Adds the current kernel thread
unix_release Tru64 General: Releases binding of the kernel thread
current_thread Tru64 General: Is a pointer to the currently running kernel thread
mpsleep Tru64 General: Blocks the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
select_dequeue Tru64 General: Removes the last kernel thread waiting for an event
tis_cond_signal Tru64 Wakes at least one thread that is waiting on the specified condition variable
pthread_cond_signal Tru64 Wakes at least one thread that is waiting on the specified condition variable
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service