Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gets called "every" time someone init's a queue with BLK_BOUNCE_ISA* as the max address, so check if the pool has already been created.

Proto:int init_emergency_isa_pool(void)

Type:int

Parameter:Nothing

110  mutex_lock( & isa_mutex)
112  If mempool_initialized( & isa_page_pool) Then
113  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
114  Return 0
117  ret = mempool_init - initialize a memory pool*@pool: pointer to the memory pool that should be initialized*@min_nr: the minimum number of elements guaranteed to be* allocated for this pool.*@alloc_fn: user-defined element-allocation function.
119  BUG_ON(ret)
121  pr_info("isa pool size: %d pages\n", ISA_POOL_SIZE)
122  init_bounce_bioset()
123  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
124  Return 0