Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kyber_init_sched

Proto:static int kyber_init_sched(struct request_queue *q, struct elevator_type *e)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct elevator_type *e
421  eq = elevator_alloc(q, e)
422  If Not eq Then Return -ENOMEM
425  kqd = kyber_queue_data_alloc(q)
426  If IS_ERR(kqd) Then
427  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
428  Return PTR_ERR(kqd)
431  blk_stat_enable_accounting(q)
433  elevator_data = kqd
434  elevator = eq
436  Return 0