|
current_task(9r)
Contents
|
current_task - General: Returns a pointer to the task
structure associated with the currently running kernel
thread
struct task * current_task(
void );
None
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.
You must not call the current_task routine from a driver's
interrupt handler.
The current_task routine returns a pointer to the task
structure for the currently running kernel thread.
Routines: round_page(9r), trunc_page(9r), vm_map_pageable(9r)
Data Structures: thread(9s)
current_task(9r)
[ Back ] |