函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:driver_filter

函数原型:static bool driver_filter(struct device *dev)

返回类型:bool

参数:

类型参数名称
struct device *dev
177  如果此条件成立可能性大(为编译器优化)(!current_driver_name[0])则返回:true
181  如果current_driverdev which driver has allocated this device 恒等于current_driver则返回:true
185  如果非dev则返回:false
188  如果current_driver或非current_driver_name[0]则返回:false
192  drv等于 which driver has allocated this device
193  如果非drv则返回:false
197  read_lock_irqsave( & driver_name_lock, flags)
199  ret = false
200  如果设备驱动程序的名称字符串指定长度比较恒等于0则
202  current_driver等于drv
203  ret = true
206  read_unlock_irqrestore( & driver_name_lock, flags)
208  返回:ret