函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bsg_get_device

函数原型:static struct bsg_device *bsg_get_device(struct inode *inode, struct file *file)

返回类型:struct bsg_device

参数:

类型参数名称
struct inode *inode
struct file *file
289  mutex_lock( & bsg_mutex)
290  bcd等于dr_find() - Return pointer for given ID
292  如果非bcd
293  bd等于错误号
294  转到:out_unlock
297  bd等于__bsg_get_device(iminor(inode), queue)
298  如果非bdbd等于bsg_add_device(inode, queue, file)
301  out_unlock :
302  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.
303  返回:bd
调用者
名称描述
bsg_open