Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_init

Proto:static void group_init(struct psi_group *group)

Type:void

Parameter:

TypeParameterName
struct psi_group *group
186  for_each_possible_cpu(cpu)
187  seqcount_init( & seq)
188  avg_last_update = Scheduler clock - returns current time in nanosec units.* This is default implementation.* Architectures and sub-architectures can override this.
189  avg_next_update = avg_last_update + Sampling frequency in nanoseconds
190  INIT_DELAYED_WORK( & avgs_work, psi_avgs_work)
191  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & avgs_lock)
193  atomic_set( & poll_scheduled, 0)
194  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & trigger_lock)
195  Initialization list head
196  memset(nr_triggers, 0, size of nr_triggers )
197  poll_states = 0
198  poll_min_period = U32_MAX
199  memset(polling_total, 0, size of polling_total )
200  polling_next_update = ULLONG_MAX
201  polling_until = 0
202  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(poll_kworker, NULL)
Caller
NameDescribe
psi_init
psi_cgroup_alloc