'\" t .\" Title: kthread_run .\" 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 "KTHREAD_RUN" "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" kthread_run \- create and wake a thread\&. .SH "SYNOPSIS" .HP \w'kthread_run('u .BI "kthread_run(" "threadfn" ", " "data" ", " "namefmt" ", " "\&.\&.\&." ");" .SH "ARGUMENTS" .PP \fIthreadfn\fR .RS 4 the function to run until signal_pending(current)\&. .RE .PP \fIdata\fR .RS 4 data ptr for \fIthreadfn\fR\&. .RE .PP \fInamefmt\fR .RS 4 printf\-style name for the thread\&. .RE .PP \fI\&.\&.\&.\fR .RS 4 variable arguments .RE .SH "DESCRIPTION" .PP Convenient wrapper for \fBkthread_create\fR followed by \fBwake_up_process\fR\&. Returns the kthread or ERR_PTR(\-ENOMEM)\&. .SH "COPYRIGHT" .br