xref: /xnu-8020.140.41/libkern/firehose/ioctl_private.h (revision 27b03b360a988dfd3dfdf34262bb0042026747cc)
1*27b03b36SApple OSS Distributions /*
2*27b03b36SApple OSS Distributions  * Copyright (c) 2015-2016 Apple Inc. All rights reserved.
3*27b03b36SApple OSS Distributions  *
4*27b03b36SApple OSS Distributions  * @APPLE_APACHE_LICENSE_HEADER_START@
5*27b03b36SApple OSS Distributions  *
6*27b03b36SApple OSS Distributions  * Licensed under the Apache License, Version 2.0 (the "License");
7*27b03b36SApple OSS Distributions  * you may not use this file except in compliance with the License.
8*27b03b36SApple OSS Distributions  * You may obtain a copy of the License at
9*27b03b36SApple OSS Distributions  *
10*27b03b36SApple OSS Distributions  *     http://www.apache.org/licenses/LICENSE-2.0
11*27b03b36SApple OSS Distributions  *
12*27b03b36SApple OSS Distributions  * Unless required by applicable law or agreed to in writing, software
13*27b03b36SApple OSS Distributions  * distributed under the License is distributed on an "AS IS" BASIS,
14*27b03b36SApple OSS Distributions  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*27b03b36SApple OSS Distributions  * See the License for the specific language governing permissions and
16*27b03b36SApple OSS Distributions  * limitations under the License.
17*27b03b36SApple OSS Distributions  *
18*27b03b36SApple OSS Distributions  * @APPLE_APACHE_LICENSE_HEADER_END@
19*27b03b36SApple OSS Distributions  */
20*27b03b36SApple OSS Distributions 
21*27b03b36SApple OSS Distributions #ifndef __FIREHOSE_IOCTL_PRIVATE__
22*27b03b36SApple OSS Distributions #define __FIREHOSE_IOCTL_PRIVATE__
23*27b03b36SApple OSS Distributions 
24*27b03b36SApple OSS Distributions #include <sys/ioccom.h>
25*27b03b36SApple OSS Distributions #include "firehose_types_private.h"
26*27b03b36SApple OSS Distributions 
27*27b03b36SApple OSS Distributions // Ioctls implemented by the oslog dev node
28*27b03b36SApple OSS Distributions 
29*27b03b36SApple OSS Distributions /* Flushed the log data. Return the updated pointers */
30*27b03b36SApple OSS Distributions #ifndef LOGFLUSHED
31*27b03b36SApple OSS Distributions #define LOGFLUSHED      _IOW('t', 81, firehose_push_reply_t)
32*27b03b36SApple OSS Distributions #endif
33*27b03b36SApple OSS Distributions 
34*27b03b36SApple OSS Distributions /* <Reserved for later. Unused now> Map the kernel log buffers to logd's address space */
35*27b03b36SApple OSS Distributions #ifndef LOGREGISTER
36*27b03b36SApple OSS Distributions #define LOGREGISTER _IOR('t', 80, int)
37*27b03b36SApple OSS Distributions #endif
38*27b03b36SApple OSS Distributions 
39*27b03b36SApple OSS Distributions /* Map the kernel log buffers to logd's address space */
40*27b03b36SApple OSS Distributions #ifndef LOGBUFFERMAP
41*27b03b36SApple OSS Distributions #define LOGBUFFERMAP _IOR('t', 79, firehose_buffer_map_info_t)
42*27b03b36SApple OSS Distributions #endif
43*27b03b36SApple OSS Distributions 
44*27b03b36SApple OSS Distributions #endif // __FIREHOSE_IOCTL_PRIVATE__
45