Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_iolatency_init

Proto:int blk_iolatency_init(struct request_queue *q)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
723  blkiolat = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
724  If Not blkiolat Then Return -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  If ret Then
736  rq_qos_del(q, rqos)
737  kfree(blkiolat)
738  Return 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  Return 0
Caller
NameDescribe
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.