Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rcutorture_booster_init

Proto:static int rcutorture_booster_init(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
1566  If (boost_tasks[cpu] != NULL) Then Return 0
1570  mutex_lock( & boost_mutex)
1571  rcu_torture_disable_rt_throttle()
1572  VERBOSE_TOROUT_STRING("Creating rcu_torture_boost task")
1573  boost_tasks[cpu] = kthread_create_on_node - create a kthread
1576  If IS_ERR(boost_tasks[cpu]) Then
1577  retval = PTR_ERR(boost_tasks[cpu])
1578  VERBOSE_TOROUT_STRING("rcu_torture_boost task create failed")
1579  n_rcu_torture_boost_ktrerror++
1580  boost_tasks[cpu] = NULL
1581  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.
1582  Return retval
1584  kthread_bind - bind a just-created kthread to a cpu
1585  wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
1586  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.
1587  Return 0