Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\debug.c Create Date:2022-07-28 10:34:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:driver_filter

Proto:static bool driver_filter(struct device *dev)

Type:bool

Parameter:

TypeParameterName
struct device *dev
177  If Value is more likely to compile time(!current_driver_name[0]) Then Return true
181  If current_driver && dev && which driver has allocated this device == current_driver Then Return true
185  If Not dev Then Return false
188  If current_driver || Not current_driver_name[0] Then Return false
192  drv = which driver has allocated this device
193  If Not drv Then Return false
197  read_lock_irqsave( & driver_name_lock, flags)
199  ret = false
200  If name && strncmp(current_driver_name, name, per-driver filter related state - 1) == 0 Then
202  current_driver = drv
203  ret = true
206  read_unlock_irqrestore( & driver_name_lock, flags)
208  Return ret