函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkg_rwstat_add_aux - add a blkg_rwstat into another's aux count*@to: the destination blkg_rwstat*@from: the source* Add @from's count including the aux one to @to's aux count.

函数原型:static inline void blkg_rwstat_add_aux(struct blkg_rwstat *to, struct blkg_rwstat *from)

返回类型:void

参数:

类型参数名称
struct blkg_rwstat *to
struct blkg_rwstat *from
142 i小于BLKG_RWSTAT_NR循环sum[i]等于percpu_counter_sum_positive( & cpu_cnt[i])
145 i小于BLKG_RWSTAT_NR循环atomic64_add(sum[i] + atomic64_read( & aux_cnt[i]), & aux_cnt[i])