1#ifndef _kextd_kernel_request_user_
2#define _kextd_kernel_request_user_
3
4/* Module kextd_kernel_request */
5
6#include <string.h>
7#include <mach/ndr.h>
8#include <mach/boolean.h>
9#include <mach/kern_return.h>
10#include <mach/notify.h>
11#include <mach/mach_types.h>
12#include <mach/message.h>
13#include <mach/mig_errors.h>
14#include <mach/port.h>
15
16/* BEGIN MIG_STRNCPY_ZEROFILL CODE */
17
18#if defined(__has_include)
19#if __has_include(<mach/mig_strncpy_zerofill_support.h>)
20#ifndef USING_MIG_STRNCPY_ZEROFILL
21#define USING_MIG_STRNCPY_ZEROFILL
22#endif
23#ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__
24#define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__
25#ifdef __cplusplus
26extern "C" {
27#endif
28#ifndef __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS_CSTRING_ATTR
29#define __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS_CSTRING_COUNTEDBY_ATTR(C) __unsafe_indexable
30#endif
31 extern int mig_strncpy_zerofill(char * dest, const char * src, int len) __attribute__((weak_import));
32#ifdef __cplusplus
33}
34#endif
35#endif /* __MIG_STRNCPY_ZEROFILL_FORWARD_TYPE_DECLS__ */
36#endif /* __has_include(<mach/mig_strncpy_zerofill_support.h>) */
37#endif /* __has_include */
38
39/* END MIG_STRNCPY_ZEROFILL CODE */
40
41#if (__MigKernelSpecificCode) || (_MIG_KERNEL_SPECIFIC_CODE_)
42#include <kern/ipc_mig.h>
43#endif /* __MigKernelSpecificCode */
44
45#ifdef AUTOTEST
46#ifndef FUNCTION_PTR_T
47#define FUNCTION_PTR_T
48typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
49typedef struct {
50 char * name;
51 function_ptr_t function;
52} function_table_entry;
53typedef function_table_entry *function_table_t;
54#endif /* FUNCTION_PTR_T */
55#endif /* AUTOTEST */
56
57#ifndef kextd_kernel_request_MSG_COUNT
58#define kextd_kernel_request_MSG_COUNT 1
59#endif /* kextd_kernel_request_MSG_COUNT */
60
61#include <Availability.h>
62#include <mach/std_types.h>
63#include <mach/mig.h>
64#include <mach/mig.h>
65#include <mach/mach_types.h>
66
67#ifdef __BeforeMigUserHeader
68__BeforeMigUserHeader
69#endif /* __BeforeMigUserHeader */
70
71#include <sys/cdefs.h>
72__BEGIN_DECLS
73
74
75/* SimpleRoutine kextd_ping */
76#ifdef mig_external
77mig_external
78#else
79extern
80#endif /* mig_external */
81kern_return_t kextd_ping
82(
83 mach_port_t server
84);
85
86__END_DECLS
87
88/********************** Caution **************************/
89/* The following data types should be used to calculate */
90/* maximum message sizes only. The actual message may be */
91/* smaller, and the position of the arguments within the */
92/* message layout may vary from what is presented here. */
93/* For example, if any of the arguments are variable- */
94/* sized, and less than the maximum is sent, the data */
95/* will be packed tight in the actual message to reduce */
96/* the presence of holes. */
97/********************** Caution **************************/
98
99/* typedefs for all requests */
100
101#ifndef __Request__kextd_kernel_request_subsystem__defined
102#define __Request__kextd_kernel_request_subsystem__defined
103
104#ifdef __MigPackStructs
105#pragma pack(push, 4)
106#endif
107 typedef struct {
108 mach_msg_header_t Head;
109 } __Request__kextd_ping_t __attribute__((unused));
110#ifdef __MigPackStructs
111#pragma pack(pop)
112#endif
113#endif /* !__Request__kextd_kernel_request_subsystem__defined */
114
115/* union of all requests */
116
117#ifndef __RequestUnion__kextd_kernel_request_subsystem__defined
118#define __RequestUnion__kextd_kernel_request_subsystem__defined
119union __RequestUnion__kextd_kernel_request_subsystem {
120 __Request__kextd_ping_t Request_kextd_ping;
121};
122#endif /* !__RequestUnion__kextd_kernel_request_subsystem__defined */
123/* typedefs for all replies */
124
125#ifndef __Reply__kextd_kernel_request_subsystem__defined
126#define __Reply__kextd_kernel_request_subsystem__defined
127
128#ifdef __MigPackStructs
129#pragma pack(push, 4)
130#endif
131 typedef struct {
132 mach_msg_header_t Head;
133 NDR_record_t NDR;
134 kern_return_t RetCode;
135 } __Reply__kextd_ping_t __attribute__((unused));
136#ifdef __MigPackStructs
137#pragma pack(pop)
138#endif
139#endif /* !__Reply__kextd_kernel_request_subsystem__defined */
140
141/* union of all replies */
142
143#ifndef __ReplyUnion__kextd_kernel_request_subsystem__defined
144#define __ReplyUnion__kextd_kernel_request_subsystem__defined
145union __ReplyUnion__kextd_kernel_request_subsystem {
146 __Reply__kextd_ping_t Reply_kextd_ping;
147};
148#endif /* !__RequestUnion__kextd_kernel_request_subsystem__defined */
149
150#ifndef subsystem_to_name_map_kextd_kernel_request
151#define subsystem_to_name_map_kextd_kernel_request \
152 { "kextd_ping", 77000 }
153#endif
154
155#ifdef __AfterMigUserHeader
156__AfterMigUserHeader
157#endif /* __AfterMigUserHeader */
158
159#endif /* _kextd_kernel_request_user_ */
160