函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-27 15:12:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, char *f, struct task_struct **tp)

返回类型:int

参数:

类型参数名称
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  如果是错误
783  ret等于错误
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  返回:ret