Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:struct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries.

Proto:static struct dma_debug_entry *dma_entry_alloc(void)

Type:struct dma_debug_entry

Parameter:Nothing

678  spin_lock_irqsave( & Lock for the list above , flags)
679  If num_free_entries == 0 Then
683  pr_err("debugging out of memory - disabling\n")
684  Return NULL
686  __dma_entry_alloc_check_leak()
689  entry = __dma_entry_alloc()
691  spin_unlock_irqrestore( & Lock for the list above , flags)
694  stack_len = stack_trace_save(stack_entries, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(stack_entries), 1)
698  Return entry
Caller
NameDescribe
debug_dma_map_page
debug_dma_map_sg
debug_dma_alloc_coherent
debug_dma_map_resource