函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_init

函数原型:static void group_init(struct psi_group *group)

返回类型:void

参数:

类型参数名称
struct psi_group *group
186  遍历可用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_updateSampling 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  初始化链表头
196  memset(nr_triggers, 0, nr_triggers的长度)
197  poll_states等于0
198  poll_min_period等于U32_MAX
199  memset(polling_total, 0, 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)
调用者
名称描述
psi_init
psi_cgroup_alloc