Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Search a given entry in the hash bucket list

Proto:static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, struct dma_debug_entry *ref, match_fn match)

Type:struct dma_debug_entry

Parameter:

TypeParameterName
struct hash_bucket *bucket
struct dma_debug_entry *ref
match_fnmatch
290  struct dma_debug_entry * entry, * ret = NULL
291  matches = 0 , last_lvl = -1
294  If Not match(ref, entry) Then Continue
307  matches += 1
308  match_lvl = 0
309  If size == size Then ++match_lvl Else 0
310  If type == type Then ++match_lvl Else 0
311  If direction == direction Then ++match_lvl Else 0
312  If sg_call_ents == sg_call_ents Then ++match_lvl Else 0
314  If match_lvl == 4 Then
316  Return entry
317  Else if match_lvl > last_lvl Then
322  last_lvl = match_lvl
323  ret = entry
331  ret = (matches == 1) ? ret : NULL
333  Return ret
Caller
NameDescribe
bucket_find_exact
bucket_find_contain