函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_msi_entry - Allocate an initialize msi_entry*@dev: Pointer to the device for which this is allocated*@nvec: The number of vectors used in this entry*@affinity: Optional pointer to an affinity mask array size of @nvec* If @affinity is not NULL then

函数原型:struct msi_desc *alloc_msi_entry(struct device *dev, int nvec, const struct irq_affinity_desc *affinity)

返回类型:struct msi_desc

参数:

类型参数名称
struct device *dev
intnvec
const struct irq_affinity_desc *affinity
34  desc等于分配内存并置零
35  如果非desc则返回:NULL
38  初始化链表头
39  dev等于dev
40  nvec_used等于nvec
41  如果affinity
42  affinity等于kmemdup(affinity, nvec * affinity的长度, GFP_KERNEL)
44  如果非affinity
46  返回:NULL
50  返回:desc