函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:psi_avgs_work

函数原型:static void psi_avgs_work(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
418  dwork等于to_delayed_work(work)
419  group等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(dwork, structpsi_group, avgs_work)
421  mutex_lock( & avgs_lock)
423  now等于Scheduler clock - returns current time in nanosec units.* This is default implementation.* Architectures and sub-architectures can override this.
425  collect_percpu_times(group, PSI_AVGS, & changed_states)
426  nonidle等于changed_states按位与1左移PSI_NONIDLE
434  如果now大于等于avg_next_updateavg_next_update等于update_averages(group, now)
437  如果nonidle
438  在延迟工作队列中放置任务
442  mutex_unlock( & avgs_lock)