Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void torture_shuffle_task_register(struct task_struct *tp)

Type:void

Parameter:

TypeParameterName
struct task_struct *tp
343  If WARN_ON_ONCE(tp == NULL) Then Return
345  stp = Allocation memory
346  If WARN_ON_ONCE(stp == NULL) Then Return
348  st_t = tp
349  mutex_lock( & shuffle_task_mutex)
350  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
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.
Caller
NameDescribe
_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.