函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Register a task to be shuffled. If there is no memory, just splat* and don't bother registering.

函数原型:void torture_shuffle_task_register(struct task_struct *tp)

返回类型:void

参数:

类型参数名称
struct task_struct *tp
343  如果WARN_ON_ONCE(tp == NULL)则返回
345  stp等于开辟内存
346  如果WARN_ON_ONCE(stp == NULL)则返回
348  st_t等于tp
349  mutex_lock( & shuffle_task_mutex)
350  添加链表项
351  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
_torture_create_kthreadCreate 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.