函数逻辑报告 |
Source Code:block\blk-cgroup-rwstat.h |
Create Date:2022-07-27 19:16:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkg_rwstat_add - add a value to a blkg_rwstat*@rwstat: target blkg_rwstat*@op: REQ_OP and flags*@val: value to add* Add @val to @rwstat. The counters are chosen according to @rw. The* caller is responsible for synchronizing calls to this function.
函数原型:static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat, unsigned int op, uint64_t val)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct blkg_rwstat * | rwstat | |
unsigned int | op | |
uint64_t | val |
66 | 如果op_is_discard(op)则cnt等于cpu_cnt[BLKG_RWSTAT_DISCARD] |
68 | 否则如果op_is_write(op)则cnt等于cpu_cnt[BLKG_RWSTAT_WRITE] |
70 | 否则cnt等于cpu_cnt[BLKG_RWSTAT_READ] |
73 | percpu_counter_add_batch(cnt, val, percpu_counter batch for blkg_[rw]stats, per-cpu drift doesn't matter ) |
75 | 如果Reads are always treated as synchronous, as are requests with the FUA or* PREFLUSH flag. Other operations may be marked as synchronous using the* REQ_SYNC flag.则cnt等于cpu_cnt[BLKG_RWSTAT_SYNC] |
77 | 否则cnt等于cpu_cnt[BLKG_RWSTAT_ASYNC] |
名称 | 描述 |
---|---|
blk_throtl_bio |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |