Function report |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-28 17:45:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iolatency_set_limit
Proto:static ssize_t iolatency_set_limit(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
790 | blkcg = css_to_blkcg(of_css(of)) |
795 | lat_val = 0 |
798 | enable = 0 |
804 | iolat = blkg_to_lat(blkg) |
812 | If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 2 Then Go to out |
820 | Else if sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments == 1 Then lat_val = v * NSEC_PER_USEC |
822 | Else Go to out |
824 | Else |
825 | Go to out |
831 | oldval = min_lat_nsec |
834 | If enable Then |
839 | If oldval != min_lat_nsec Then |
843 | ret = 0 |
844 | out : |
847 | tmp = blkg_to_lat(blkg) |
852 | If enable == 1 Then atomic_inc( & enabled) |
854 | Else if enable == -1 Then atomic_dec( & enabled) |
856 | Else WARN_ON_ONCE(1) |
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 |