函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:debug_dma_assert_idle() - assert that a page is not undergoing dma*@page: page to lookup in the dma_active_cacheline tree* Place a call to this routine in cases where the cpu touching the page* before the dma completes (page is dma_unmapped) will lead to

函数原型:void debug_dma_assert_idle(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
562  struct dma_debug_entry * entry = NULL
563  void * * results = (void * * ) & ents
568  如果dma_debug_disabled()则返回
571  如果非page则返回
574  cln等于page_to_pfn(page)左移CACHELINE_PER_PAGE_SHIFT
575  spin_lock_irqsave( & radix_lock, flags)
576  nents等于adix_tree_gang_lookup - perform multiple lookup on a radix tree*@root: radix tree root*@results: where the results of the lookup are placed*@first_index: start the lookup from this key*@max_items: place up to this many items at *results
578 i小于nents循环
579  ent_cln等于to_cacheline_number(ents[i])
581  如果ent_cln恒等于cln
582  entry等于ents[i]
583  退出
584  否则如果ent_cln大于等于clnCACHELINES_PER_PAGE退出
587  spin_unlock_irqrestore( & radix_lock, flags)
589  如果非entry则返回
592  cln等于to_cacheline_number(entry)