]> git.saurik.com Git - apple/libdispatch.git/blob - src/firehose/firehose.defs
libdispatch-703.1.4.tar.gz
[apple/libdispatch.git] / src / firehose / firehose.defs
1 /*
2 * Copyright (c) 2015 Apple Inc. All rights reserved.
3 *
4 * @APPLE_APACHE_LICENSE_HEADER_START@
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 * @APPLE_APACHE_LICENSE_HEADER_END@
19 */
20
21 #include <mach/std_types.defs>
22 #include <mach/mach_types.defs>
23
24 #include "firehose_types.defs"
25
26 subsystem firehose 11600;
27 serverprefix firehose_server_;
28 userprefix firehose_send_;
29
30 simpleroutine
31 register(
32 server_port : mach_port_t;
33 mem_port : mach_port_move_send_t;
34 mem_size : mach_vm_size_t;
35 comm_recvp : mach_port_move_receive_t;
36 comm_sendp : mach_port_make_send_t;
37 extra_info_port : mach_port_move_send_t;
38 extra_info_size : mach_vm_size_t
39 );
40
41 routine
42 push(
43 RequestPort comm_port : mach_port_t;
44 SReplyPort reply_port : mach_port_make_send_once_t;
45 qos_class : qos_class_t;
46 for_io : boolean_t;
47 out push_reply : firehose_push_reply_t
48 );
49
50 simpleroutine
51 push_async(
52 comm_port : mach_port_t;
53 qos_class : qos_class_t;
54 for_io : boolean_t;
55 expects_notify : boolean_t
56 );