Function report |
Source Code:block\blk-throttle.c |
Create Date:2022-07-28 17:43:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tg_prfill_limit
Proto:static u64 tg_prfill_limit(struct seq_file *sf, struct blkg_policy_data *pd, int off)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct seq_file * | sf | |
| struct blkg_policy_data * | pd | |
| int | off |
| 1564 | char bufs[4][21] = {"max", "max", "max", "max"} |
| 1567 | idle_time[26] = "" |
| 1568 | latency_time[26] = "" |
| 1570 | If Not dname Then Return 0 |
| 1576 | Else |
| 1581 | If user configured bps limits [generic data direction definitions ][off] == bps_dft && user configured bps limits [WRITE][off] == bps_dft && user configured IOPS limits [generic data direction definitions ][off] == iops_dft && user configured IOPS limits [WRITE][off] == iops_dft && ( off != LIMIT_LOW || us == DFL_IDLE_THRESHOLD && us == DFL_LATENCY_TARGET ) Then Return 0 |
| 1609 | If us == ULONG_MAX Then strcpy(latency_time, " latency=max") |
| 1616 | seq_printf(sf, "%s rbps=%s wbps=%s riops=%s wiops=%s%s%s\n", dname, bufs[0], bufs[1], bufs[2], bufs[3], idle_time, latency_time) |
| 1619 | Return 0 |
| 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 |