1*2af72e0aSImre Vadász /* 2*2af72e0aSImre Vadász * Copyright (c) 2015 The DragonFly Project. All rights reserved. 3*2af72e0aSImre Vadász * 4*2af72e0aSImre Vadász * This code is derived from software contributed to The DragonFly Project 5*2af72e0aSImre Vadász * by Imre Vadász <imre@vdsz.com> 6*2af72e0aSImre Vadász * 7*2af72e0aSImre Vadász * Redistribution and use in source and binary forms, with or without 8*2af72e0aSImre Vadász * modification, are permitted provided that the following conditions 9*2af72e0aSImre Vadász * are met: 10*2af72e0aSImre Vadász * 11*2af72e0aSImre Vadász * 1. Redistributions of source code must retain the above copyright 12*2af72e0aSImre Vadász * notice, this list of conditions and the following disclaimer. 13*2af72e0aSImre Vadász * 2. Redistributions in binary form must reproduce the above copyright 14*2af72e0aSImre Vadász * notice, this list of conditions and the following disclaimer in 15*2af72e0aSImre Vadász * the documentation and/or other materials provided with the 16*2af72e0aSImre Vadász * distribution. 17*2af72e0aSImre Vadász * 3. Neither the name of The DragonFly Project nor the names of its 18*2af72e0aSImre Vadász * contributors may be used to endorse or promote products derived 19*2af72e0aSImre Vadász * from this software without specific, prior written permission. 20*2af72e0aSImre Vadász * 21*2af72e0aSImre Vadász * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22*2af72e0aSImre Vadász * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23*2af72e0aSImre Vadász * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24*2af72e0aSImre Vadász * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25*2af72e0aSImre Vadász * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26*2af72e0aSImre Vadász * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 27*2af72e0aSImre Vadász * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28*2af72e0aSImre Vadász * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29*2af72e0aSImre Vadász * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30*2af72e0aSImre Vadász * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31*2af72e0aSImre Vadász * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32*2af72e0aSImre Vadász * SUCH DAMAGE. 33*2af72e0aSImre Vadász */ 34*2af72e0aSImre Vadász #ifndef _PANIC_NOTIFIER_H_ 35*2af72e0aSImre Vadász #define _PANIC_NOTIFIER_H_ 36*2af72e0aSImre Vadász 37*2af72e0aSImre Vadász struct panicerinfo { 38*2af72e0aSImre Vadász void (*notifier) (void *); 39*2af72e0aSImre Vadász void *arg; 40*2af72e0aSImre Vadász }; 41*2af72e0aSImre Vadász 42*2af72e0aSImre Vadász int set_panic_notifier(struct panicerinfo *info); 43*2af72e0aSImre Vadász 44*2af72e0aSImre Vadász #endif /* _PANIC_NOTIFIER_H_ */ 45