2 * Copyright (c) 1993-1995, 1999-2000 Apple Computer, Inc.
5 * @APPLE_LICENSE_HEADER_START@
7 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
9 * This file contains Original Code and/or Modifications of Original Code
10 * as defined in and that are subject to the Apple Public Source License
11 * Version 2.0 (the 'License'). You may not use this file except in
12 * compliance with the License. Please obtain a copy of the License at
13 * http://www.opensource.apple.com/apsl/ and read it before using this
16 * The Original Code and all software distributed under the License are
17 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
18 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
19 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
21 * Please see the License for the specific language governing rights and
22 * limitations under the License.
24 * @APPLE_LICENSE_HEADER_END@
27 * Private declarations for thread-based callouts.
32 * Pulled into Mac OS X (microkernel).
38 #ifndef _KERN_CALL_ENTRY_H_
39 #define _KERN_CALL_ENTRY_H_
41 #ifdef MACH_KERNEL_PRIVATE
42 #include <kern/queue.h>
44 typedef void *call_entry_param_t
;
45 typedef void (*call_entry_func_t
)(
46 call_entry_param_t param0
,
47 call_entry_param_t param1
);
49 typedef struct call_entry
{
51 call_entry_func_t func
;
52 call_entry_param_t param0
;
53 call_entry_param_t param1
;
61 #define call_entry_setup(entry, pfun, p0) \
63 (entry)->func = (call_entry_func_t)(pfun); \
64 (entry)->param0 = (call_entry_param_t)(p0); \
65 (entry)->state = IDLE; \
68 #endif /* MACH_KERNEL_PRIVATE */
70 #endif /* _KERN_CALL_ENTRY_H_ */