'\" t .\" Title: kthread_bind .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "KTHREAD_BIND" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" kthread_bind \- bind a just\-created kthread to a cpu\&. .SH "SYNOPSIS" .HP \w'void\ kthread_bind('u .BI "void kthread_bind(struct\ task_struct\ *\ " "p" ", unsigned\ int\ " "cpu" ");" .SH "ARGUMENTS" .PP \fIp\fR .RS 4 thread created by \fBkthread_create\fR\&. .RE .PP \fIcpu\fR .RS 4 cpu (might not be online, must be possible) for \fIk\fR to run on\&. .RE .SH "DESCRIPTION" .PP This function is equivalent to \fBset_cpus_allowed\fR, except that \fIcpu\fR doesn\*(Aqt need to be online, and the thread must be stopped (i\&.e\&., just returned from \fBkthread_create\fR)\&. .SH "COPYRIGHT" .br