Function report | 
Source Code:block\blk-cgroup-rwstat.c | 
Create Date:2022-07-28 17:41:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__blkg_prfill_rwstat - prfill helper for a blkg_rwstat*@sf: seq_file to print to*@pd: policy private data of interest*@rwstat: rwstat to print* Print @rwstat to @sf for the device assocaited with @pd.
Proto:u64 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, const struct blkg_rwstat_sample *rwstat)
Type:u64
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct seq_file * | sf | |
| struct blkg_policy_data * | pd | |
| const struct blkg_rwstat_sample * | rwstat | 
| 45 | static const char * rwstr[] = {[BLKG_RWSTAT_READ] = "Read", [BLKG_RWSTAT_WRITE] = "Write", [BLKG_RWSTAT_SYNC] = "Sync", [BLKG_RWSTAT_ASYNC] = "Async", [BLKG_RWSTAT_DISCARD] = "Discard", } | 
| 56 | If Not dname Then Return 0 | 
| 59 | When i < BLKG_RWSTAT_NR cycle seq_printf(sf, "%s %s %llu\n", dname, rwstr[i], cnt[i]) | 
| 63 | v = cnt[BLKG_RWSTAT_READ] + cnt[BLKG_RWSTAT_WRITE] + cnt[BLKG_RWSTAT_DISCARD] | 
| 66 | seq_printf(sf, "%s Total %llu\n", dname, v) | 
| 67 | Return v | 
| Name | Describe | 
|---|---|
| blkg_prfill_rwstat | lkg_prfill_rwstat - prfill callback for blkg_rwstat*@sf: seq_file to print to*@pd: policy private data of interest*@off: offset to the blkg_rwstat in @pd* prfill callback for printing a blkg_rwstat. | 
| tg_prfill_rwstat_recursive | 
| 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  |