Commit db393504 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/thread: dovetail: define out-of-band state accessors

Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 0af124df
/*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
*/
#ifndef _COBALT_KERNEL_DOVETAIL_THREAD_H
#define _COBALT_KERNEL_DOVETAIL_THREAD_H
#include <linux/dovetail.h>
struct xnthread;
#define cobalt_threadinfo oob_thread_state
static inline struct cobalt_threadinfo *pipeline_current(void)
{
return dovetail_current_state();
}
static inline
struct xnthread *pipeline_thread_from_task(struct task_struct *p)
{
return dovetail_task_state(p)->thread;
}
#endif /* !_COBALT_KERNEL_DOVETAIL_THREAD_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment