Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:56:46
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_bio

Proto:static int __init init_bio(void)

Type:int

Parameter:Nothing

2207  bio_slab_max = 2
2208  bio_slab_nr = 0
2209  bio_slabs = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
2212  BUILD_BUG_ON - break compile if a condition is true(BIO_FLAG_LAST > BVEC_POOL_OFFSET)
2214  If Not bio_slabs Then panic - 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  If 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 Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2223  If 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[].) Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2226  Return 0