Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-28 16:57:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:elevator_alloc

Proto:struct elevator_queue *elevator_alloc(struct request_queue *q, struct elevator_type *e)

Type:struct elevator_queue

Parameter:

TypeParameterName
struct request_queue *q
struct elevator_type *e
169  eq = 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
170  If Value for the false possibility is greater at compile time(!eq) Then Return 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  Return eq
Caller
NameDescribe
dd_init_queuealize elevator private data (deadline_data).
kyber_init_sched
bfq_init_queue