Function report | 
Source Code:block\blk-cgroup-rwstat.h | 
Create Date:2022-07-28 17:41:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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.
Proto:static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat, unsigned int op, uint64_t val)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct blkg_rwstat * | rwstat | |
| unsigned int | op | |
| uint64_t | val | 
| 66 | If op_is_discard(op) Then cnt = cpu_cnt[BLKG_RWSTAT_DISCARD] | 
| 68 | Else if op_is_write(op) Then cnt = cpu_cnt[BLKG_RWSTAT_WRITE] | 
| 70 | Else 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 ) | 
| 77 | Else cnt = cpu_cnt[BLKG_RWSTAT_ASYNC] | 
| Name | Describe | 
|---|---|
| blk_throtl_bio | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |