函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup.c Create Date:2022-07-27 19:15:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkcg_reset_stats

函数原型:static int blkcg_reset_stats(struct cgroup_subsys_state *css, struct cftype *cftype, u64 val)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys_state *css
struct cftype *cftype
u64val
462  blkcg等于css_to_blkcg(css)
466  mutex_lock( & blkcg_pol_mutex)
467  spin_lock_irq( & lock)
475  遍历可用CPU(cpu)
476  bis等于per_cpu_ptr(iostat_cpu, cpu)
478  memset(bis, 0, bis的长度)
480  memset( & iostat, 0, iostat的长度)
482 i小于Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency.循环
483  pol等于blkcg_policy[i]
485  如果pd[i]且pd_reset_stats_fnpd_reset_stats_fn(pd[i])
490  spin_unlock_irq( & lock)
491  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.
492  返回:0