函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Request exclusive access to a hash bucket for a given dma_debug_entry.

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

返回类型:struct hash_bucket

参数:

类型参数名称
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  返回:Hash list to save the allocated dma addresses [idx]
调用者
名称描述
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