Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-sysfs.c Create Date:2022-07-28 17:01:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:queue_wb_lat_store

Proto:static ssize_t queue_wb_lat_store(struct request_queue *q, const char *page, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
struct request_queue *q
const char *page
size_tcount
455  ret = queue_var_store64( & val, page)
456  If ret < 0 Then Return ret
458  If val < -1 Then Return -EINVAL
461  rqos = wbt_rq_qos(q)
462  If Not rqos Then
463  ret = wbt_init(q)
464  If ret Then Return ret
468  If val == -1 Then val = wbt_default_latency_nsec(q)
470  Else if val >= 0 Then val *= 1000ULL
473  If wbt_get_min_lat(q) == val Then Return 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  Return count