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