函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Dump mapping entries for debugging purposes

函数原型:void debug_dma_dump_mappings(struct device *dev)

返回类型:void

参数:

类型参数名称
struct device *dev
401 idx小于HASH_SIZE循环
402  bucket等于Hash list to save the allocated dma addresses [idx]
406  spin_lock_irqsave( & lock, flags)
409  如果非devdev恒等于dev
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()