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

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

select_enqueue(9r)

Contents


NAME    [Toc]    [Back]

       select_enqueue - General: Adds the current kernel thread

SYNOPSIS    [Toc]    [Back]

       void select_enqueue(
               sel_queue_t *selq );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to a sel_queue structure.

DESCRIPTION    [Toc]    [Back]

       The  select_enqueue routine adds the current kernel thread
       to the list of kernel threads waiting for a  select  event
       on  the  specified  device.  This routine is called when a
       kernel module's select routine has  been  called  and  the
       requested  event  cannot  be  immediately  satisfied.  For
       example, the requested event cannot be immediately  satisfied
 when xxselect is called for the following reasons: To
       select on input and there are no characters available When
       called  for  output and the kernel module's output buffers
       are currently full

       By calling select_enqueue, the kernel module's select routine
  ensures  that  the  kernel thread issuing the select
       call will be blocked until the requested event can be satisfied
 or until the select call terminates.

CAUTIONS    [Toc]    [Back]

       You  must  call  the  queue_init routine to initialize the
       sel_queue   structure    pointer    prior    to    calling
       select_enqueue.  Failure  to  do  so  causes the kernel to
       panic.

RETURN VALUES    [Toc]    [Back]

       None

FILES    [Toc]    [Back]

SEE ALSO
       Routines:       queue_init(9r),        select_dequeue(9r),
       select_dequeue_all(9r), select_wakeup(9r)

       Data Structures: sel_queue(9s)

       System Calls: select(2)



                                               select_enqueue(9r)
[ Back ]
 Similar pages
Name OS Title
mpsleep Tru64 General: Blocks the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
thread_block Tru64 General: Blocks (puts to sleep) the current kernel thread
select_wakeup Tru64 General: Wakes up a kernel thread
current_thread Tru64 General: Is a pointer to the currently running kernel thread
unix_release Tru64 General: Releases binding of the kernel thread
select_dequeue Tru64 General: Removes the last kernel thread waiting for an event
thread_wakeup_one Tru64 General: Wakes up the first kernel thread waiting on a channel
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