1 1.9 riastrad /* $NetBSD: kernspace.h,v 1.9 2023/08/09 08:23:02 riastradh Exp $ */ 2 1.1 pooka 3 1.1 pooka /*- 4 1.7 thorpej * Copyright (c) 2010, 2018 The NetBSD Foundation, Inc. 5 1.1 pooka * All rights reserved. 6 1.1 pooka * 7 1.1 pooka * Redistribution and use in source and binary forms, with or without 8 1.1 pooka * modification, are permitted provided that the following conditions 9 1.1 pooka * are met: 10 1.1 pooka * 1. Redistributions of source code must retain the above copyright 11 1.1 pooka * notice, this list of conditions and the following disclaimer. 12 1.1 pooka * 2. Redistributions in binary form must reproduce the above copyright 13 1.1 pooka * notice, this list of conditions and the following disclaimer in the 14 1.1 pooka * documentation and/or other materials provided with the distribution. 15 1.1 pooka * 16 1.1 pooka * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 17 1.1 pooka * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18 1.1 pooka * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 1.1 pooka * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20 1.1 pooka * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 21 1.1 pooka * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 1.1 pooka * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23 1.1 pooka * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 1.1 pooka * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 1.1 pooka * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 1.1 pooka * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27 1.1 pooka * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 1.1 pooka */ 29 1.1 pooka 30 1.1 pooka #ifndef _TESTS_RUMP_KERNSPACE_KERNSPACE_H_ 31 1.1 pooka #define _TESTS_RUMP_KERNSPACE_KERNSPACE_H_ 32 1.1 pooka 33 1.3 pooka enum locktest { LOCKME_MTX, LOCKME_RWDOUBLEX, LOCKME_RWRX, LOCKME_RWXR, 34 1.3 pooka LOCKME_DESTROYHELD, LOCKME_DOUBLEINIT, LOCKME_DOUBLEFREE, 35 1.3 pooka LOCKME_MEMFREE }; 36 1.3 pooka 37 1.1 pooka void rumptest_busypage(void); 38 1.1 pooka void rumptest_threadjoin(void); 39 1.1 pooka void rumptest_thread(void); 40 1.1 pooka void rumptest_tsleep(void); 41 1.2 pooka void rumptest_alloc(size_t); 42 1.3 pooka void rumptest_lockme(enum locktest); 43 1.5 maya void rumptest_workqueue1(void); 44 1.6 ozaki void rumptest_workqueue_wait(void); 45 1.9 riastrad void rumptest_workqueue_wait_pause(void); 46 1.1 pooka 47 1.4 pooka void rumptest_sendsig(char *); 48 1.4 pooka void rumptest_localsig(int); 49 1.4 pooka 50 1.7 thorpej void rumptest_threadpool_unbound_lifecycle(void); 51 1.7 thorpej void rumptest_threadpool_percpu_lifecycle(void); 52 1.7 thorpej void rumptest_threadpool_unbound_schedule(void); 53 1.7 thorpej void rumptest_threadpool_percpu_schedule(void); 54 1.7 thorpej void rumptest_threadpool_job_cancel(void); 55 1.8 thorpej void rumptest_threadpool_job_cancelthrash(void); 56 1.7 thorpej 57 1.1 pooka #endif /* _TESTS_RUMP_KERNSPACE_KERNSPACE_H_ */ 58