kern_shutdown.c (258893) | kern_shutdown.c (258956) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 258893 2013-12-03 21:35:25Z cperciva $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 258956 2013-12-05 03:01:41Z cperciva $"); |
39 40#include "opt_ddb.h" 41#include "opt_kdb.h" 42#include "opt_panic.h" 43#include "opt_sched.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 37 unchanged lines hidden (view full) --- 84#include <vm/vm_pager.h> 85#include <vm/swap_pager.h> 86 87#include <sys/signalvar.h> 88 89#ifndef PANIC_REBOOT_WAIT_TIME 90#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 91#endif | 39 40#include "opt_ddb.h" 41#include "opt_kdb.h" 42#include "opt_panic.h" 43#include "opt_sched.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 37 unchanged lines hidden (view full) --- 84#include <vm/vm_pager.h> 85#include <vm/swap_pager.h> 86 87#include <sys/signalvar.h> 88 89#ifndef PANIC_REBOOT_WAIT_TIME 90#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 91#endif |
92int panic_reboot_wait_time = PANIC_REBOOT_WAIT_TIME; | 92static int panic_reboot_wait_time = PANIC_REBOOT_WAIT_TIME; |
93SYSCTL_INT(_kern, OID_AUTO, panic_reboot_wait_time, CTLFLAG_RW | CTLFLAG_TUN, 94 &panic_reboot_wait_time, 0, 95 "Seconds to wait before rebooting after a panic"); 96TUNABLE_INT("kern.panic_reboot_wait_time", &panic_reboot_wait_time); 97 98/* 99 * Note that stdarg.h and the ANSI style va_start macro is used for both 100 * ANSI and traditional C compilers. --- 798 unchanged lines hidden --- | 93SYSCTL_INT(_kern, OID_AUTO, panic_reboot_wait_time, CTLFLAG_RW | CTLFLAG_TUN, 94 &panic_reboot_wait_time, 0, 95 "Seconds to wait before rebooting after a panic"); 96TUNABLE_INT("kern.panic_reboot_wait_time", &panic_reboot_wait_time); 97 98/* 99 * Note that stdarg.h and the ANSI style va_start macro is used for both 100 * ANSI and traditional C compilers. --- 798 unchanged lines hidden --- |