函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:elevator_alloc

函数原型:struct elevator_queue *elevator_alloc(struct request_queue *q, struct elevator_type *e)

返回类型:struct elevator_queue

参数:

类型参数名称
struct request_queue *q
struct elevator_type *e
169  eq等于根据内存节点分配内存
170  如果此条件成立可能性小(为编译器优化)(!eq)则返回:NULL
173  type等于e
174  kobject_init() - Initialize a kobject structure
175  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & sysfs_lock)
176  hash_init - initialize a hash table*@hashtable: hashtable to be initialized* Calculates the size of the hashtable from the given parameter, otherwise* same as hash_init_size.* This has to be a macro since HASH_BITS() will not work on pointers since(hash)
178  返回:eq
调用者
名称描述
dd_init_queuealize elevator private data (deadline_data).
kyber_init_sched
bfq_init_queue