xref: /xnu-11215.81.4/tests/sched/sched_test_harness/shadow_headers/misc_needed_defines.h (revision d4514f0bc1d3f944c22d92e68b646ac3fb40d452)
1 // Copyright (c) 2023 Apple Inc.  All rights reserved.
2 
3 #ifndef _MISC_NEEDED_DEFINES_H_
4 #define _MISC_NEEDED_DEFINES_H_
5 
6 /* Defines from osfmk/mach/mach_types.h */
7 
8 #include <mach/clock_types.h>
9 
10 typedef struct task                     *task_t;
11 typedef struct thread                   *thread_t;
12 typedef struct processor                *processor_t;
13 typedef struct processor_set            *processor_set_t;
14 
15 #define TASK_NULL               ((task_t) 0)
16 #define THREAD_NULL             ((thread_t) 0)
17 #define PROCESSOR_NULL          ((processor_t) 0)
18 
19 typedef int             kern_return_t;
20 
21 /* Defines from osfmk/kern/timer_call.h */
22 typedef void            *timer_call_param_t;
23 
24 /* Defines from osfmk/kern/ast.h */
25 typedef uint32_t ast_t;
26 #define AST_PREEMPT             0x01
27 #define AST_QUANTUM             0x02
28 #define AST_URGENT              0x04
29 #define AST_NONE                0x00
30 
31 /* Defines from osfmk/kern/kern_types.h */
32 typedef struct run_queue               *run_queue_t;
33 
34 #endif  /* _MISC_NEEDED_DEFINES_H_ */
35