Function report | 
Source Code:block\blk-iocost.c | 
Create Date:2022-07-28 17:49:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:ioc_qos_write
Proto:static ssize_t ioc_qos_write(struct kernfs_open_file *of, char *input, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kernfs_open_file * | of | |
| char * | input | |
| size_t | nbytes | |
| loff_t | off | 
| 2197 | If Not ioc Then | 
| 2204 | spin_lock_irq( & lock) | 
| 2207 | user = user_qos_params | 
| 2208 | spin_unlock_irq( & lock) | 
| 2216 | If Not p Then Continue | 
| 2223 | Continue | 
| 2230 | Else Go to einval | 
| 2232 | Continue | 
| 2235 | tok = match_token(p, qos_tokens, args) | 
| 2247 | Break | 
| 2253 | Break | 
| 2265 | Break | 
| 2266 | Default | 
| 2267 | Go to einval | 
| 2269 | user = true | 
| 2275 | spin_lock_irq( & lock) | 
| 2277 | If enable Then | 
| 2279 | enabled = true | 
| 2280 | Else | 
| 2281 | lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue | 
| 2282 | enabled = false | 
| 2285 | If user Then | 
| 2287 | user_qos_params = true | 
| 2288 | Else | 
| 2289 | user_qos_params = false | 
| 2292 | ioc_refresh_params(ioc, true) | 
| 2293 | spin_unlock_irq( & lock) | 
| 2296 | Return nbytes | 
| 2297 | einval : | 
| 2299 | err : | 
| 2301 | Return ret | 
| 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  |