.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PREPARE_TASK_SWITCH" "9" "09 October 2005" "" "" .SH NAME prepare_task_switch \- prepare to switch tasks .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void prepare_task_switch (runqueue_t * \fIrq\fB, task_t * \fInext\fB); \fR .SH "ARGUMENTS" .TP \fB\fIrq\fB\fR the runqueue preparing to switch .TP \fB\fInext\fB\fR the task we are going to switch to. .SH "DESCRIPTION" .PP This is called with the rq lock held and interrupts off. It must be paired with a subsequent finish_task_switch after the context switch. .PP prepare_task_switch sets up locking and calls architecture specific hooks.