'\" t .\" Title: wake_up_process .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "WAKE_UP_PROCESS" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" wake_up_process \- Wake up a specific process .SH "SYNOPSIS" .HP \w'int\ wake_up_process('u .BI "int wake_up_process(struct\ task_struct\ *\ " "p" ");" .SH "ARGUMENTS" .PP \fIp\fR .RS 4 The process to be woken up\&. .RE .SH "DESCRIPTION" .PP Attempt to wake up the nominated process and move it to the set of runnable processes\&. .SH "RETURN" .PP 1 if the process was woken up, 0 if it was already running\&. .PP It may be assumed that this function implies a write memory barrier before changing the task state if and only if any tasks are woken up\&. .SH "COPYRIGHT" .br