---
name: "kthread_run"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/kthread_run"
---

# kthread\_run(9)

create and wake a thread.

## NAME

kthread\_run - create and wake a thread.

## SYNOPSIS

**kthread\_run(***threadfn***,** *data***,** *namefmt***,** *...***);**

## ARGUMENTS

*threadfn*

the function to run until signal\_pending(current).

*data*

data ptr for *threadfn*.

*namefmt*

printf-style name for the thread.

*...*

variable arguments

## DESCRIPTION

Convenient wrapper for **kthread\_create** followed by **wake\_up\_process**. Returns the kthread or ERR\_PTR(-ENOMEM).

## COPYRIGHT
