4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 * Copyright (c) 2013 by Delphix. All rights reserved.
33 #include <sys/synch.h>
34 #include <sys/ucontext.h>
43 #define LWP_DAEMON 0x00000020
44 #define LWP_DETACHED 0x00000040
45 #define LWP_SUSPENDED 0x00000080
48 * Definitions for user programs calling into the _lwp interface.
51 timestruc_t lwp_utime
;
52 timestruc_t lwp_stime
;
56 #if defined(_SYSCALL32)
58 /* Kernel's view of user ILP32 lwpinfo structure */
61 timestruc32_t lwp_utime
;
62 timestruc32_t lwp_stime
;
63 int32_t lwpinfo_pad
[64];
66 #endif /* _SYSCALL32 */
68 typedef uint_t lwpid_t
;
73 #define _LWP_SETPRIVATE 0
74 #define _LWP_GETPRIVATE 1
78 int _lwp_kill(lwpid_t
, int);
79 int _lwp_info(struct lwpinfo
*);
80 lwpid_t
_lwp_self(void);
81 int _lwp_suspend(lwpid_t
);
82 int _lwp_continue(lwpid_t
);
90 #endif /* _SYS_LWP_H */