函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bio_put_slab

函数原型:static void bio_put_slab(struct bio_set *bs)

返回类型:void

参数:

类型参数名称
struct bio_set *bs
120  struct bio_slab * bslab = NULL
123  mutex_lock( & bio_slab_lock)
125 i小于bio_slab_nr循环
126  如果bio_slab恒等于slab
127  bslab等于bio_slabs[i]
128  退出
132  如果WARN(!bslab, r conditions "bio: unable to find slab!\n")则转到:out
135  WARN_ON(!slab_ref)
137  如果slab_ref先自减则转到:out
140  删除高速缓存区
141  slab = NULL
143  out :
144  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.
调用者
名称描述
bioset_exitset_exit - exit a bioset initialized with bioset_init()* May be called on a zeroed but uninitialized bioset (i.e. allocated with* kzalloc()).