Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:active_cacheline_insert

Proto:static int active_cacheline_insert(struct dma_debug_entry *entry)

Type:int

Parameter:

TypeParameterName
struct dma_debug_entry *entry
512  cln = to_cacheline_number(entry)
520  If direction == DMA_TO_DEVICE Then Return 0
523  spin_lock_irqsave( & radix_lock, flags)
524  rc = __radix_tree_insert - insert into a radix tree*@root: radix tree root*@index: index key*@item: item to insert* Insert an item into the radix tree at position @index.
525  If rc == -EEXIST Then active_cacheline_inc_overlap(cln)
527  spin_unlock_irqrestore( & radix_lock, flags)
529  Return rc
Caller
NameDescribe
add_dma_entryWrapper function for adding an entry to the hash.* This function takes care of locking itself.