/* * SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2020 Philippe Gerum */ #ifndef _COBALT_KERNEL_DOVETAIL_KEVENTS_H #define _COBALT_KERNEL_DOVETAIL_KEVENTS_H #define KEVENT_PROPAGATE 0 #define KEVENT_STOP 1 struct cobalt_process; struct cobalt_thread; static inline int pipeline_attach_process(struct cobalt_process *process) { return 0; } static inline void pipeline_detach_process(struct cobalt_process *process) { } int pipeline_prepare_current(void); void pipeline_attach_current(struct xnthread *thread); int pipeline_trap_kevents(void); void pipeline_enable_kevents(void); void pipeline_cleanup_process(void); #endif /* !_COBALT_KERNEL_DOVETAIL_KEVENTS_H */