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