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

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

current_task(9r)

Contents


NAME    [Toc]    [Back]

       current_task  -  General:  Returns  a  pointer to the task
       structure associated with  the  currently  running  kernel
       thread

SYNOPSIS    [Toc]    [Back]

       struct task * current_task(
               void );

ARGUMENTS    [Toc]    [Back]

       None

DESCRIPTION    [Toc]    [Back]

       The  current_task  routine  returns  a pointer to the task
       structure associated with  the  currently  running  kernel
       thread.   A  device driver typically calls this routine in
       preparation for doing a DMA operation to a user's  buffer.
       The  device  driver  uses  the  pointer  returned  by current_task
 in the call to the vm_map_pageable routine.

CAUTIONS    [Toc]    [Back]

       You must not call the current_task routine from a driver's
       interrupt handler.

RETURN VALUES    [Toc]    [Back]

       The  current_task  routine  returns  a pointer to the task
       structure for the currently running kernel thread.

SEE ALSO    [Toc]    [Back]

      
      
       Routines:  round_page(9r),  trunc_page(9r),   vm_map_pageable(9r)

       Data Structures: thread(9s)



                                                 current_task(9r)
[ Back ]
 Similar pages
Name OS Title
current_thread Tru64 General: Is a pointer to 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
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
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
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service