函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-sysfs.c Create Date:2022-07-27 18:36:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:queue_wb_lat_store

函数原型:static ssize_t queue_wb_lat_store(struct request_queue *q, const char *page, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct request_queue *q
const char *page
size_tcount
455  ret等于queue_var_store64( & val, page)
456  如果ret小于0则返回:ret
458  如果val小于负1则返回:负EINVAL
461  rqos等于wbt_rq_qos(q)
462  如果非rqos
463  ret等于wbt_init(q)
464  如果ret则返回:ret
468  如果val恒等于负1则val等于wbt_default_latency_nsec(q)
470  否则如果val大于等于0则val乘等于1000ULL
473  如果wbt_get_min_lat(q)恒等于val则返回:count
481  blk_mq_freeze_queue(q)
482  blk_mq_quiesce_queue(q)
484  wbt_set_min_lat(q, val)
486  lk_mq_unquiesce_queue() - counterpart of blk_mq_quiesce_queue()*@q: request queue.* This function recovers queue into the state before quiescing* which is done by blk_mq_quiesce_queue.
487  blk_mq_unfreeze_queue(q)
489  返回:count