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
29
30
31
32
/*
 * SPDX-License-Identifier: GPL-2.0
 *
 * Copyright (C) 2019 Philippe Gerum  <rpm@xenomai.org>
 */
 
#ifndef _COBALT_KERNEL_IPIPE_INBAND_WORK_H
#define _COBALT_KERNEL_IPIPE_INBAND_WORK_H
 
#include <linux/ipipe.h>
 
/*
 * This field must be named inband_work and appear first in the
 * container work struct.
 */
struct pipeline_inband_work {
   struct ipipe_work_header work;
};
 
#define PIPELINE_INBAND_WORK_INITIALIZER(__work, __handler)        \
   {                                \
       .work = {                        \
           .size = sizeof(__work),                \
           .handler = (void (*)(struct ipipe_work_header *)) \
           __handler,                    \
       },                            \
   }
 
#define pipeline_post_inband_work(__work)    \
   ipipe_post_work_root(__work, inband_work.work)
 
#endif /* !_COBALT_KERNEL_IPIPE_INBAND_WORK_H */