函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:31:59
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_bio

函数原型:static int __init init_bio(void)

返回类型:int

参数:

2207  bio_slab_max等于2
2208  bio_slab_nr等于0
2209  bio_slabs等于分配数组内存并置零
2212  BUILD_BUG_ON - break compile if a condition is true(BIO_FLAG_LAST > BVEC_POOL_OFFSET)
2214  如果非bio_slabspanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2217  bio_integrity_init()
2218  biovec_init_slabs()
2220  如果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 panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2223  如果bioset_integrity_create( & s_bio_set is the bio_set containing bio and iovec memory pools used by* IO code that does not need private memory pools., _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[].)则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2226  返回:0