函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_iolatency_init

函数原型:int blk_iolatency_init(struct request_queue *q)

返回类型:int

参数:

类型参数名称
struct request_queue *q
723  blkiolat等于分配内存并置零
724  如果非blkiolat则返回:负ENOMEM
727  rqos等于rqos
728  id等于RQ_QOS_LATENCY
729  ops等于blkcg_iolatency_ops
730  q等于q
732  rq_qos_add(q, rqos)
734  ret等于lkcg_activate_policy - activate a blkcg policy on a request_queue*@q: request_queue of interest*@pol: blkcg policy to activate* Activate @pol on @q
735  如果ret
736  rq_qos_del(q, rqos)
737  释放内存
738  返回:ret
741  imer_setup - prepare a timer for first use*@timer: the timer in question*@callback: the function to call when timer expires*@flags: any TIMER_* flags* Regular timer initialization should use either DEFINE_TIMER() above,* or timer_setup()( & timer, blkiolatency_timer_fn, 0)
743  返回:0
调用者
名称描述
blkcg_init_queuelkcg_init_queue - initialize blkcg part of request queue*@q: request_queue to initialize* Called from blk_alloc_queue_node(). Responsible for initializing blkcg* part of new request_queue @q.* RETURNS:* 0 on success, -errno on failure.