函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__dma_entry_alloc

函数原型:static struct dma_debug_entry *__dma_entry_alloc(void)

返回类型:struct dma_debug_entry

参数:

645  entry等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structdma_debug_entry, list)
646  删除链表项
647  memset(entry, 0, entry的长度)
649  num_free_entries减等于1
650  如果num_free_entries小于min_free_entriesmin_free_entries等于num_free_entries
653  返回:entry
调用者
名称描述
dma_entry_allocstruct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries.