Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Request exclusive access to a hash bucket for a given dma_debug_entry.

Proto:static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, unsigned long *flags)__acquires(&dma_entry_hash[idx].lock)

Type:struct hash_bucket

Parameter:

TypeParameterName
struct dma_debug_entry *entry
unsigned long *flags
246  idx = Hash related functions* Every DMA-API request is saved into a struct dma_debug_entry. To* have quick access to these structs they are stored into a hash.
249  spin_lock_irqsave( & lock, __flags)
250  flags = __flags
251  Return Hash list to save the allocated dma addresses [idx]
Caller
NameDescribe
bucket_find_contain
add_dma_entryWrapper function for adding an entry to the hash.* This function takes care of locking itself.
check_unmap
check_sync
debug_dma_mapping_error
get_nr_mapped_entries