函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rn 1 for enabling iolatency, return -1 for disabling iolatency, otherwise* return 0.

函数原型:static int iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val)

返回类型:int

参数:

类型参数名称
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  如果非oldvalval则返回:1
762  如果oldval且非val
763  blkcg_clear_delay(blkg)
764  返回:负1
766  返回:0
调用者
名称描述
iolatency_set_limit
iolatency_pd_offline