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