xref: /netbsd-src/lib/librumpuser/rumpuser_component.h (revision be085dcd7252bfb9dfc2f510db76bc55a1c94198)
1*be085dcdSpooka /*	$NetBSD: rumpuser_component.h,v 1.3 2013/04/30 12:39:20 pooka Exp $	*/
27b7946c6Spooka 
37b7946c6Spooka /*
47b7946c6Spooka  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
57b7946c6Spooka  *
67b7946c6Spooka  * Redistribution and use in source and binary forms, with or without
77b7946c6Spooka  * modification, are permitted provided that the following conditions
87b7946c6Spooka  * are met:
97b7946c6Spooka  * 1. Redistributions of source code must retain the above copyright
107b7946c6Spooka  *    notice, this list of conditions and the following disclaimer.
117b7946c6Spooka  * 2. Redistributions in binary form must reproduce the above copyright
127b7946c6Spooka  *    notice, this list of conditions and the following disclaimer in the
137b7946c6Spooka  *    documentation and/or other materials provided with the distribution.
147b7946c6Spooka  *
157b7946c6Spooka  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
167b7946c6Spooka  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
177b7946c6Spooka  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
187b7946c6Spooka  * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
197b7946c6Spooka  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
207b7946c6Spooka  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
217b7946c6Spooka  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
227b7946c6Spooka  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
237b7946c6Spooka  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
247b7946c6Spooka  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
257b7946c6Spooka  * SUCH DAMAGE.
267b7946c6Spooka  */
277b7946c6Spooka 
287b7946c6Spooka #ifndef _RUMP_RUMPUSER_COMPONENT_H_
297b7946c6Spooka #define _RUMP_RUMPUSER_COMPONENT_H_
307b7946c6Spooka 
317b7946c6Spooka void *	rumpuser_component_unschedule(void);
327b7946c6Spooka void	rumpuser_component_schedule(void *);
33*be085dcdSpooka int	rumpuser_component_errtrans(int);
347b7946c6Spooka 
359dda4d86Spooka void	rumpuser_component_kthread(void);
369dda4d86Spooka struct lwp *rumpuser_component_curlwp(void);
379dda4d86Spooka void	rumpuser_component_switchlwp(struct lwp *);
389dda4d86Spooka void	rumpuser_component_kthread_release(void);
399dda4d86Spooka 
407b7946c6Spooka #endif /* _RUMP_RUMPUSER_COMPONENT_H_ */
41