Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cpu_rmap.c Create Date:2022-07-28 07:17:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:q_cpu_rmap_add - add an IRQ to a CPU affinity reverse-map*@rmap: The reverse-map*@irq: The IRQ number* This adds an IRQ affinity notifier that will update the reverse-map* automatically.* Must be called in process context, after the IRQ is allocated but

Proto:int irq_cpu_rmap_add(struct cpu_rmap *rmap, int irq)

Type:int

Parameter:

TypeParameterName
struct cpu_rmap *rmap
intirq
287  glue = 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).
290  If Not glue Then Return -ENOMEM
292  notify = q_cpu_rmap_notify - callback for IRQ subsystem when IRQ affinity updated*@notify: struct irq_affinity_notify passed by irq/manage.c*@mask: cpu mask for new SMP affinity* This is executed in workqueue context.
293  release = q_cpu_rmap_release - reclaiming callback for IRQ subsystem*@ref: kref to struct irq_affinity_notify passed by irq/manage.c
294  rmap = rmap
295  pu_rmap_get - internal helper to get new ref on a cpu_rmap*@rmap: reverse-map allocated with alloc_cpu_rmap()
296  index = pu_rmap_add - add object to a rmap*@rmap: CPU rmap allocated with alloc_cpu_rmap()*@obj: Object to add to rmap* Return index of object.
297  rc = irq_set_affinity_notifier(irq, & notify)
298  If rc Then
299  pu_rmap_put - release ref on a cpu_rmap*@rmap: reverse-map allocated with alloc_cpu_rmap()
300  kfree(glue)
302  Return rc