xref: /onnv-gate/usr/src/cmd/mdb/common/modules/genunix/taskq.h (revision 10889:8b6ec68049bd)
1*10889SJonathan.Adams@Sun.COM /*
2*10889SJonathan.Adams@Sun.COM  * CDDL HEADER START
3*10889SJonathan.Adams@Sun.COM  *
4*10889SJonathan.Adams@Sun.COM  * The contents of this file are subject to the terms of the
5*10889SJonathan.Adams@Sun.COM  * Common Development and Distribution License (the "License").
6*10889SJonathan.Adams@Sun.COM  * You may not use this file except in compliance with the License.
7*10889SJonathan.Adams@Sun.COM  *
8*10889SJonathan.Adams@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*10889SJonathan.Adams@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*10889SJonathan.Adams@Sun.COM  * See the License for the specific language governing permissions
11*10889SJonathan.Adams@Sun.COM  * and limitations under the License.
12*10889SJonathan.Adams@Sun.COM  *
13*10889SJonathan.Adams@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*10889SJonathan.Adams@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*10889SJonathan.Adams@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*10889SJonathan.Adams@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*10889SJonathan.Adams@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*10889SJonathan.Adams@Sun.COM  *
19*10889SJonathan.Adams@Sun.COM  * CDDL HEADER END
20*10889SJonathan.Adams@Sun.COM  */
21*10889SJonathan.Adams@Sun.COM /*
22*10889SJonathan.Adams@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*10889SJonathan.Adams@Sun.COM  * Use is subject to license terms.
24*10889SJonathan.Adams@Sun.COM  */
25*10889SJonathan.Adams@Sun.COM 
26*10889SJonathan.Adams@Sun.COM #ifndef	_TASKQ_H
27*10889SJonathan.Adams@Sun.COM #define	_TASKQ_H
28*10889SJonathan.Adams@Sun.COM 
29*10889SJonathan.Adams@Sun.COM #ifdef	__cplusplus
30*10889SJonathan.Adams@Sun.COM extern "C" {
31*10889SJonathan.Adams@Sun.COM #endif
32*10889SJonathan.Adams@Sun.COM 
33*10889SJonathan.Adams@Sun.COM extern int taskq(uintptr_t, uint_t, int, const mdb_arg_t *);
34*10889SJonathan.Adams@Sun.COM extern void taskq_help(void);
35*10889SJonathan.Adams@Sun.COM 
36*10889SJonathan.Adams@Sun.COM extern int taskq_ent(uintptr_t, uint_t, int, const mdb_arg_t *);
37*10889SJonathan.Adams@Sun.COM 
38*10889SJonathan.Adams@Sun.COM extern int taskq_ent_walk_init(mdb_walk_state_t *);
39*10889SJonathan.Adams@Sun.COM extern int taskq_ent_walk_step(mdb_walk_state_t *);
40*10889SJonathan.Adams@Sun.COM 
41*10889SJonathan.Adams@Sun.COM extern int taskq_thread_walk_init(mdb_walk_state_t *);
42*10889SJonathan.Adams@Sun.COM extern int taskq_thread_walk_step(mdb_walk_state_t *);
43*10889SJonathan.Adams@Sun.COM extern void taskq_thread_walk_fini(mdb_walk_state_t *);
44*10889SJonathan.Adams@Sun.COM 
45*10889SJonathan.Adams@Sun.COM #ifdef	__cplusplus
46*10889SJonathan.Adams@Sun.COM }
47*10889SJonathan.Adams@Sun.COM #endif
48*10889SJonathan.Adams@Sun.COM 
49*10889SJonathan.Adams@Sun.COM #endif	/* _TASKQ_H */
50