Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-28 13:50:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Create a generic torture kthread that is immediately runnable. If you* need the kthread to be stopped so that you can do something to it before* it starts, you will need to open-code your own.

Proto:int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, char *f, struct task_struct **tp)

Type:int

Parameter:

TypeParameterName
int (*fn
void *arg
char *s
char *m
char *f
struct task_struct **tp
778  ret = 0
780  VERBOSE_TOROUT_STRING(m)
781  tp = kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(fn, arg, "%s", s)
782  If IS_ERR( * tp) Then
783  ret = PTR_ERR( * tp)
784  VERBOSE_TOROUT_ERRSTRING(f)
785  * tp = NULL
787  Register a task to be shuffled. If there is no memory, just splat* and don't bother registering.
788  Return ret