函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bsg_put_device

函数原型:static int bsg_put_device(struct bsg_device *bd)

返回类型:int

参数:

类型参数名称
struct bsg_device *bd
212  q等于queue
214  mutex_lock( & bsg_mutex)
216  如果非_dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED
217  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.
218  返回:0
221  hlist_del( & dev_list)
222  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.
224  bsg_dbg(bd, "tearing down\n")
229  释放内存
230  blk_put_queue(q)
231  返回:0
调用者
名称描述
bsg_release