xref: /netbsd-src/sys/dev/sysmon/sysmon_taskq.h (revision 88580404b3929db4e804464968897068c49c3d25)
1*88580404Sriastradh /*	$NetBSD: sysmon_taskq.h,v 1.5 2021/12/31 14:22:11 riastradh Exp $	*/
2d14efd22Sthorpej 
3d14efd22Sthorpej /*
4d14efd22Sthorpej  * Copyright (c) 2003 Wasabi Systems, Inc.
5d14efd22Sthorpej  * All rights reserved.
6d14efd22Sthorpej  *
7d14efd22Sthorpej  * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8d14efd22Sthorpej  *
9d14efd22Sthorpej  * Redistribution and use in source and binary forms, with or without
10d14efd22Sthorpej  * modification, are permitted provided that the following conditions
11d14efd22Sthorpej  * are met:
12d14efd22Sthorpej  * 1. Redistributions of source code must retain the above copyright
13d14efd22Sthorpej  *    notice, this list of conditions and the following disclaimer.
14d14efd22Sthorpej  * 2. Redistributions in binary form must reproduce the above copyright
15d14efd22Sthorpej  *    notice, this list of conditions and the following disclaimer in the
16d14efd22Sthorpej  *    documentation and/or other materials provided with the distribution.
17d14efd22Sthorpej  * 3. All advertising materials mentioning features or use of this software
18d14efd22Sthorpej  *    must display the following acknowledgement:
19d14efd22Sthorpej  *	This product includes software developed for the NetBSD Project by
20d14efd22Sthorpej  *	Wasabi Systems, Inc.
21d14efd22Sthorpej  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22d14efd22Sthorpej  *    or promote products derived from this software without specific prior
23d14efd22Sthorpej  *    written permission.
24d14efd22Sthorpej  *
25d14efd22Sthorpej  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26d14efd22Sthorpej  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27d14efd22Sthorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28d14efd22Sthorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
29d14efd22Sthorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30d14efd22Sthorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31d14efd22Sthorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32d14efd22Sthorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33d14efd22Sthorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34d14efd22Sthorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35d14efd22Sthorpej  * POSSIBILITY OF SUCH DAMAGE.
36d14efd22Sthorpej  */
37d14efd22Sthorpej 
38d14efd22Sthorpej #ifndef _DEV_SYSMON_SYSMON_TASKQ_H_
39d14efd22Sthorpej #define	_DEV_SYSMON_SYSMON_TASKQ_H_
40d14efd22Sthorpej 
41d14efd22Sthorpej void	sysmon_task_queue_init(void);
420d9dbfe9Spgoyette int	sysmon_task_queue_fini(void);
43d14efd22Sthorpej int	sysmon_task_queue_sched(u_int, void (*)(void *), void *);
44*88580404Sriastradh void	sysmon_task_queue_barrier(u_int);
45d14efd22Sthorpej 
46d14efd22Sthorpej #endif /* _DEV_SYSMON_SYSMON_TASKQ_H_ */
47