Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Dump mapping entries for debugging purposes

Proto:void debug_dma_dump_mappings(struct device *dev)

Type:void

Parameter:

TypeParameterName
struct device *dev
401  When idx < HASH_SIZE cycle
402  bucket = Hash list to save the allocated dma addresses [idx]
406  spin_lock_irqsave( & lock, flags)
409  If Not dev || dev == dev Then
410  dev_info(dev, "%s idx %d P=%Lx N=%lx D=%Lx L=%Lx %s %s\n", type2name[type], idx, phys_addr(entry), pfn, dev_addr, size, dir2name[direction], maperr2str[map_err_type])
420  spin_unlock_irqrestore( & lock, flags)
421  cond_resched()