函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_bounce_bioset

函数原型:static void init_bounce_bioset(void)

返回类型:void

参数:

39  如果bounce_bs_setup则返回
42  ret等于set_init - Initialize a bio_set*@bs: pool to initialize*@pool_size: Number of bio and bio_vecs to cache in the mempool*@front_pad: Number of bytes to allocate in front of the returned bio*@flags: Flags to modify behavior, currently %BIOSET_NEED_BVECS* and
43  BUG_ON(ret)
44  如果bioset_integrity_create( & bounce_bio_set, _set is used to allow other portions of the IO system to* allocate their own private memory pools for bio and iovec structures.* These memory pools in turn all allocate from the bio_slab* and the bvec_slabs[].)则BUG_ON(1)
47  ret等于set_init - Initialize a bio_set*@bs: pool to initialize*@pool_size: Number of bio and bio_vecs to cache in the mempool*@front_pad: Number of bytes to allocate in front of the returned bio*@flags: Flags to modify behavior, currently %BIOSET_NEED_BVECS* and
48  BUG_ON(ret)
49  bounce_bs_setup = true
调用者
名称描述
init_emergency_isa_poolgets 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.