Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:struct msi_desc *alloc_msi_entry(struct device *dev, int nvec, const struct irq_affinity_desc *affinity)

Type:struct msi_desc

Parameter:

TypeParameterName
struct device *dev
intnvec
const struct irq_affinity_desc *affinity
34  desc = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
35  If Not desc Then Return NULL
38  Initialization list head
39  dev = dev
40  nvec_used = nvec
41  If affinity Then
42  affinity = kmemdup(affinity, nvec * size of affinity , GFP_KERNEL)
44  If Not affinity Then
46  Return NULL
50  Return desc