函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alize elevator private data (deadline_data).

函数原型:static int dd_init_queue(struct request_queue *q, struct elevator_type *e)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct elevator_type *e
411  eq等于elevator_alloc(q, e)
412  如果非eq则返回:负ENOMEM
415  dd等于根据内存节点分配内存
416  如果非dd
417  递减引用计数对象
418  返回:负ENOMEM
420  elevator_data等于dd
422  初始化链表头
423  初始化链表头
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  spin_lock_init( & lock)
432  spin_lock_init( & zone_lock)
433  初始化链表头
435  elevator等于eq
436  返回:0