Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alize elevator private data (deadline_data).

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

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct elevator_type *e
411  eq = elevator_alloc(q, e)
412  If Not eq Then Return -ENOMEM
415  dd = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
416  If Not dd Then
417  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
418  Return -ENOMEM
420  elevator_data = dd
422  Initialization list head
423  Initialization list head
424  * requests (deadline_rq s) are present on both sort_list and fifo_list[generic data direction definitions ] =
425  * requests (deadline_rq s) are present on both sort_list and fifo_list[WRITE] =
426  * settings that change how the i/o scheduler behaves[generic data direction definitions ] = max time before a read is submitted.
427  * settings that change how the i/o scheduler behaves[WRITE] = ditto for writes, these limits are SOFT!
428  writes_starved = max times reads can starve a write
429  front_merges = 1
430  fifo_batch = # of sequential requests treated as oneby the above parameters. For throughput.
431  Process spin lock initialization( & lock)
432  Process spin lock initialization( & zone_lock)
433  Initialization list head
435  elevator = eq
436  Return 0