Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rn 1 for enabling iolatency, return -1 for disabling iolatency, otherwise* return 0.

Proto:static int iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val)

Type:int

Parameter:

TypeParameterName
struct blkcg_gq *blkg
u64val
752  iolat = blkg_to_lat(blkg)
753  oldval = min_lat_nsec
755  min_lat_nsec = val
756  cur_win_nsec = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, val << 4, BLKIOLATENCY_MIN_WIN_SIZE)
757  cur_win_nsec = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, cur_win_nsec, BLKIOLATENCY_MAX_WIN_SIZE)
760  If Not oldval && val Then Return 1
762  If oldval && Not val Then
763  blkcg_clear_delay(blkg)
764  Return -1
766  Return 0
Caller
NameDescribe
iolatency_set_limit
iolatency_pd_offline