Function report |
Source Code:block\blk-iocost.c |
Create Date:2022-07-28 17:49:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ioc_weight_write
Proto:static ssize_t ioc_weight_write(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 |
| 2073 | blkcg = css_to_blkcg(of_css(of)) |
| 2074 | iocc = blkcg_to_iocc(blkcg) |
| 2090 | dfl_weight = v |
| 2092 | iocg = blkg_to_iocg(blkg) |
| 2094 | If iocg Then |
| 2100 | spin_unlock( & lock) |
| 2102 | Return nbytes |
| 2109 | iocg = blkg_to_iocg(blkg) |
| 2112 | v = 0 |
| 2113 | Else |
| 2122 | weight_updated(iocg) |
| 2123 | spin_unlock( & lock) |
| 2126 | Return nbytes |
| 2128 | einval : |
| 2130 | Return -EINVAL |
| 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 |