hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2020 Philippe Gerum  <rpm@xenomai.org>
 */
 
#ifndef _COBALT_KERNEL_DOVETAIL_INBAND_WORK_H
#define _COBALT_KERNEL_DOVETAIL_INBAND_WORK_H
 
#include <linux/irq_work.h>
 
/*
 * This field must be named inband_work and appear first in the
 * container work struct.
 */
struct pipeline_inband_work {
   struct irq_work work;
};
 
#define PIPELINE_INBAND_WORK_INITIALIZER(__work, __handler)        \
   {                                \
       .work = IRQ_WORK_INIT((void (*)(struct irq_work *))__handler), \
   }
 
#define pipeline_post_inband_work(__work)                \
           irq_work_queue(&(__work)->inband_work.work)
 
#endif /* !_COBALT_KERNEL_DOVETAIL_INBAND_WORK_H */