Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_unmap

Proto:static void check_unmap(struct dma_debug_entry *ref)

Type:void

Parameter:

TypeParameterName
struct dma_debug_entry *ref
998  bucket = Request exclusive access to a hash bucket for a given dma_debug_entry.
999  entry = bucket_find_exact(bucket, ref)
1001  If Not entry Then
1003  Give up exclusive access to the hash bucket
1005  If dma_mapping_error(dev, dev_addr) Then
1009  Else
1016  Return
1019  If size != size Then
1027  If type != type Then
1034  Else if type == dma_debug_coherent && phys_addr(ref) != phys_addr(entry) Then
1046  If sg_call_ents && type == dma_debug_sg && sg_call_ents != sg_call_ents Then
1058  If direction != direction Then
1073  If map_err_type == MAP_ERR_NOT_CHECKED Then
1082  Remove entry from a hash bucket list
1083  dma_entry_free(entry)
1085  Give up exclusive access to the hash bucket
Caller
NameDescribe
debug_dma_unmap_page
debug_dma_unmap_sg
debug_dma_free_coherent
debug_dma_unmap_resource